mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
parent
cd2ef6771a
commit
b2872f216a
@ -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())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user