Android: Core part of the game should start in fullscreen by default (Thanks fizzwhiz)

This commit is contained in:
UnknownShadow200 2020-11-03 00:40:02 +11:00
parent 0d656869a4
commit d4214022b5
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -323,6 +323,7 @@ void Launcher_Run(void) {
Http_Component.Free();
Program_Run(0, NULL);
Window_ExitFullscreen();
Window_RemakeSurface();
Launcher_Run();
}