From b2872f216a7fdbcc9222e22a463fb8ec1d15d0dd Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 8 Feb 2022 20:26:08 +0900 Subject: [PATCH] internal/ui: update comments Updates #1575 --- internal/ui/ui_glfw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index a101ca828..42489fdd2 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -398,6 +398,7 @@ func (u *UserInterface) setInitWindowPositionInDIP(x, y int) { u.m.Lock() defer u.m.Unlock() + // TODO: Update initMonitor if necessary (#1575). u.initWindowPositionXInDIP = x u.initWindowPositionYInDIP = y } @@ -641,7 +642,6 @@ func (u *UserInterface) SetCursorShape(shape CursorShape) { func (u *UserInterface) DeviceScaleFactor() float64 { if !u.isRunning() { - // TODO: Use the initWindowPosition. This requires to convert the units correctly (#1575). return u.deviceScaleFactor(u.currentMonitor()) }