mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48: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
|
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() {
|
if !w.ui.isRunning() {
|
||||||
w.ui.setInitWindowMaximized(true)
|
w.ui.setInitWindowMaximized(true)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user