mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/uidriver/glfw: use shoten sleeping time at waitForFramebufferSizeCallback
Updates #1918
This commit is contained in:
parent
e01a0b8a82
commit
a19bbd3b09
@ -807,7 +807,7 @@ func (u *UserInterface) waitForFramebufferSizeCallback(window *glfw.Window, f fu
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Use the timeout as FramebufferSize event might not be fired (#1618).
|
// Use the timeout as FramebufferSize event might not be fired (#1618).
|
||||||
t := time.NewTimer(time.Second)
|
t := time.NewTimer(100 * time.Millisecond)
|
||||||
defer t.Stop()
|
defer t.Stop()
|
||||||
|
|
||||||
event:
|
event:
|
||||||
|
Loading…
Reference in New Issue
Block a user