From d4214022b5572e50f8d73cc2ba8f81f2eed7e11e Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 3 Nov 2020 00:40:02 +1100 Subject: [PATCH] Android: Core part of the game should start in fullscreen by default (Thanks fizzwhiz) --- src/Game.c | 1 + src/Launcher.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Game.c b/src/Game.c index a597a5e30..a7a83a0b0 100644 --- a/src/Game.c +++ b/src/Game.c @@ -687,6 +687,7 @@ void Game_Run(int width, int height, const cc_string* title) { /* Android won't let us change pixel surface to EGL surface */ /* So unfortunately have to completely recreate the surface */ if (!SwitchToGame()) return; + Window_EnterFullscreen(); #endif Window_Create(width, height); diff --git a/src/Launcher.c b/src/Launcher.c index 796d6e19c..2199d25d2 100644 --- a/src/Launcher.c +++ b/src/Launcher.c @@ -323,6 +323,7 @@ void Launcher_Run(void) { Http_Component.Free(); Program_Run(0, NULL); + Window_ExitFullscreen(); Window_RemakeSurface(); Launcher_Run(); }