From e98661c1d3f04fc8d34211cbbe8b85f16ea3c0fb Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 25 Nov 2022 00:59:15 +0900 Subject: [PATCH] internal/ui: forbid fullscreen on Xbox --- internal/ui/ui_glfw.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index fca9f2e35..a0fae48da 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -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