mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-22 22:48:08 +03:00
Android: Create window as fullscreen
This lets SDL use the "immersive fullscreen" mode where system bars are hidden.
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user