mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/uidriver/glfw: Make SetFullscreen more responsive on macOS
This commit is contained in:
parent
07c8cb0e23
commit
9dbff2cddd
@ -183,7 +183,7 @@ func (u *UserInterface) isNativeFullscreenAvailable() bool {
|
||||
|
||||
func (u *UserInterface) setNativeFullscreen(fullscreen bool) {
|
||||
// Toggling fullscreen might ignore events like keyUp. Ensure that events are fired.
|
||||
glfw.WaitEventsTimeout(1)
|
||||
glfw.WaitEventsTimeout(0.1)
|
||||
C.setNativeFullscreen(C.uintptr_t(u.window.GetCocoaWindow()), C.bool(fullscreen))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user