mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
891ca2a08d
commit
57c123a412
@ -1304,6 +1304,9 @@ func (u *UserInterface) setWindowSizeInDIPImpl(width, height int, fullscreen boo
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: This must be called just after the window is created.
|
||||
// This relies on the initial value of lastDeviceScaleFactor is 0 so this is called, but the condition is fragile.
|
||||
// Refactor this.
|
||||
n, d := glfw.DontCare, glfw.DontCare
|
||||
if !fullscreen && u.isWindowAspectRatioFixed() {
|
||||
n, d = u.window.GetSize()
|
||||
|
Loading…
Reference in New Issue
Block a user