From 5743979bca08818c4a2bd596beea2dc6baa7688d Mon Sep 17 00:00:00 2001 From: kichikuou Date: Sat, 18 Jan 2020 12:45:29 +0900 Subject: [PATCH] Android: Create window as fullscreen This lets SDL use the "immersive fullscreen" mode where system bars are hidden. --- src/sdl_video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sdl_video.c b/src/sdl_video.c index 12e7b5b..cc31993 100644 --- a/src/sdl_video.c +++ b/src/sdl_video.c @@ -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