mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
internal/ui: forbid maximizing window when a window size is limited
Closes #2258
This commit is contained in:
parent
e150745598
commit
31141d5112
@ -119,6 +119,11 @@ func (w *glfwWindow) Maximize() {
|
||||
return
|
||||
}
|
||||
|
||||
minw, minh, maxw, maxh := w.ui.getWindowSizeLimitsInDIP()
|
||||
if minw != glfw.DontCare || minh != glfw.DontCare || maxw != glfw.DontCare || maxh != glfw.DontCare {
|
||||
return
|
||||
}
|
||||
|
||||
if !w.ui.isRunning() {
|
||||
w.ui.setInitWindowMaximized(true)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user