Android: Create window as fullscreen

This lets SDL use the "immersive fullscreen" mode where system bars are
hidden.
This commit is contained in:
kichikuou
2020-01-18 12:45:29 +09:00
parent 5831087c8b
commit 5743979bca
+2 -1
View File
@@ -109,7 +109,8 @@ static void window_init(void) {
);
#ifdef __ANDROID__
Uint32 flags = 0;
SDL_SetHint(SDL_HINT_ORIENTATIONS, "LandscapeLeft LandscapeRight");
Uint32 flags = SDL_WINDOW_FULLSCREEN;
#else
Uint32 flags = SDL_WINDOW_RESIZABLE;
#endif