mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/ui: forbid fullscreen on Xbox
This commit is contained in:
parent
b9b78b5b44
commit
e98661c1d3
@ -538,6 +538,10 @@ func (u *userInterfaceImpl) isFullscreen() bool {
|
||||
}
|
||||
|
||||
func (u *userInterfaceImpl) IsFullscreen() bool {
|
||||
if microsoftgdk.IsXbox() {
|
||||
return false
|
||||
}
|
||||
|
||||
if !u.isRunning() {
|
||||
return u.isInitFullscreen()
|
||||
}
|
||||
@ -549,6 +553,10 @@ func (u *userInterfaceImpl) IsFullscreen() bool {
|
||||
}
|
||||
|
||||
func (u *userInterfaceImpl) SetFullscreen(fullscreen bool) {
|
||||
if microsoftgdk.IsXbox() {
|
||||
return
|
||||
}
|
||||
|
||||
if !u.isRunning() {
|
||||
u.setInitFullscreen(fullscreen)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user