mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/ui: enable some functions even on fullsceen
This is thanks to a GLFW v3.3.8 change:
9950cc52df
Updates #1590
This commit is contained in:
parent
a84a738360
commit
d0fa68691c
@ -45,10 +45,6 @@ func (w *glfwWindow) SetDecorated(decorated bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
w.ui.t.Call(func() {
|
w.ui.t.Call(func() {
|
||||||
if w.ui.isNativeFullscreen() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
w.ui.setWindowDecorated(decorated)
|
w.ui.setWindowDecorated(decorated)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -75,9 +71,6 @@ func (w *glfwWindow) SetResizingMode(mode WindowResizingMode) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
w.ui.t.Call(func() {
|
w.ui.t.Call(func() {
|
||||||
if w.ui.isNativeFullscreen() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
w.ui.setWindowResizingMode(mode)
|
w.ui.setWindowResizingMode(mode)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -99,9 +92,6 @@ func (w *glfwWindow) SetFloating(floating bool) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
w.ui.t.Call(func() {
|
w.ui.t.Call(func() {
|
||||||
if w.ui.isNativeFullscreen() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
w.ui.setWindowFloating(floating)
|
w.ui.setWindowFloating(floating)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user