mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/ui: bug fix: glfwWindow.IsMaximized should not return true on fullscreen
Closes #2239
This commit is contained in:
parent
7a936f7052
commit
b5196a5a7c
@ -105,7 +105,7 @@ func (w *glfwWindow) IsMaximized() bool {
|
||||
}
|
||||
var v bool
|
||||
w.ui.t.Call(func() {
|
||||
v = w.ui.window.GetAttrib(glfw.Maximized) == glfw.True
|
||||
v = w.ui.window.GetAttrib(glfw.Maximized) == glfw.True && !w.ui.isNativeFullscreen()
|
||||
})
|
||||
return v
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user