mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +01:00
parent
7aefac3f5f
commit
74641b1941
@ -910,10 +910,13 @@ func (u *UserInterface) update() (float64, float64, bool, error) {
|
||||
// Calling this inside setWindowSize didn't work (#1363).
|
||||
if !u.vsyncInited {
|
||||
u.vsync = u.isInitVsyncEnabled()
|
||||
u.updateVsync()
|
||||
u.vsyncInited = true
|
||||
}
|
||||
|
||||
// Call updateVsync regardless of vsyncInited.
|
||||
// When toggling to fullscreen, vsync state might be reset unexpectedly (#1787).
|
||||
u.updateVsync()
|
||||
|
||||
outsideWidth, outsideHeight, outsideSizeChanged := u.updateSize()
|
||||
|
||||
// TODO: Updating the input can be skipped when clock.Update returns 0 (#1367).
|
||||
|
Loading…
Reference in New Issue
Block a user