mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/ui: bug fix: ebiten.WindowSize() returned (1,1) when iconified
This commit is contained in:
parent
aae866350a
commit
3fe1df8b3b
@ -759,6 +759,9 @@ func (u *userInterfaceImpl) registerWindowFramebufferSizeCallback() {
|
||||
if u.isFullscreen() {
|
||||
return
|
||||
}
|
||||
if u.window.GetAttrib(glfw.Iconified) == glfw.True {
|
||||
return
|
||||
}
|
||||
|
||||
// The framebuffer size is always scaled by the device scale factor (#1975).
|
||||
// See also the implementation in uiContext.updateOffscreen.
|
||||
|
Loading…
Reference in New Issue
Block a user