mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-13 22:47:26 +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 {
|
func (u *userInterfaceImpl) IsFullscreen() bool {
|
||||||
|
if microsoftgdk.IsXbox() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if !u.isRunning() {
|
if !u.isRunning() {
|
||||||
return u.isInitFullscreen()
|
return u.isInitFullscreen()
|
||||||
}
|
}
|
||||||
@ -549,6 +553,10 @@ func (u *userInterfaceImpl) IsFullscreen() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (u *userInterfaceImpl) SetFullscreen(fullscreen bool) {
|
func (u *userInterfaceImpl) SetFullscreen(fullscreen bool) {
|
||||||
|
if microsoftgdk.IsXbox() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if !u.isRunning() {
|
if !u.isRunning() {
|
||||||
u.setInitFullscreen(fullscreen)
|
u.setInitFullscreen(fullscreen)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user