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()
|
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())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user