mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/uidriver/glfw: Bug fix: Crashed a transparent button with the green button
Updates #1822 Closes #1857
This commit is contained in:
parent
afded3c711
commit
97af84c32a
@ -181,7 +181,9 @@ func (u *UserInterface) setNativeCursor(shape driver.CursorShape) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (u *UserInterface) isNativeFullscreenAvailable() bool {
|
func (u *UserInterface) isNativeFullscreenAvailable() bool {
|
||||||
return u.window.GetAttrib(glfw.TransparentFramebuffer) != glfw.True
|
// TODO: If the window is transparent, we should use GLFW's windowed fullscreen (#1822, #1857).
|
||||||
|
// However, if the user clicks the green button, should this window be in native fullscreen mode?
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u *UserInterface) setNativeFullscreen(fullscreen bool) {
|
func (u *UserInterface) setNativeFullscreen(fullscreen bool) {
|
||||||
|
Loading…
Reference in New Issue
Block a user