mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +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
0238549cfb
commit
113796efae
@ -175,7 +175,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