From 4fb27adb9d1d8a85ace44796dfc566f447a36275 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 24 Sep 2023 19:21:46 +0900 Subject: [PATCH] internal/ui: remove an old comment Now Ebitengine allows to specify the initial monitor, having an initial monitor is no longer a hack. Updates #1575 Updates #1835 --- internal/ui/ui_glfw.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index 8b5138177..3f2d4a3c4 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -784,11 +784,10 @@ func (u *userInterfaceImpl) createWindow() error { u.window = window // The position must be set before the size is set (#1982). - // setWindowSize refers the current monitor's device scale. + // setWindowSizeInDIP refers the current monitor's device scale. wx, wy := u.getInitWindowPositionInDIP() mw := int(u.dipFromGLFWMonitorPixel(float64(monitor.videoMode.Width), monitor)) mh := int(u.dipFromGLFWMonitorPixel(float64(monitor.videoMode.Height), monitor)) - // Force to put the window in the initial monitor (#1575). if max := mw - ww; wx >= max { wx = max }