internal/ui: update comments

Updates #1575
This commit is contained in:
Hajime Hoshi 2022-02-08 20:26:08 +09:00
parent cd2ef6771a
commit b2872f216a

View File

@ -398,6 +398,7 @@ func (u *UserInterface) setInitWindowPositionInDIP(x, y int) {
u.m.Lock() u.m.Lock()
defer u.m.Unlock() defer u.m.Unlock()
// TODO: Update initMonitor if necessary (#1575).
u.initWindowPositionXInDIP = x u.initWindowPositionXInDIP = x
u.initWindowPositionYInDIP = y u.initWindowPositionYInDIP = y
} }
@ -641,7 +642,6 @@ func (u *UserInterface) SetCursorShape(shape CursorShape) {
func (u *UserInterface) DeviceScaleFactor() float64 { func (u *UserInterface) DeviceScaleFactor() float64 {
if !u.isRunning() { if !u.isRunning() {
// TODO: Use the initWindowPosition. This requires to convert the units correctly (#1575).
return u.deviceScaleFactor(u.currentMonitor()) return u.deviceScaleFactor(u.currentMonitor())
} }