internal/ui: forbid fullscreen on Xbox

This commit is contained in:
Hajime Hoshi 2022-11-25 00:59:15 +09:00
parent b9b78b5b44
commit e98661c1d3

View File

@ -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