mirror of
https://github.com/love2d/love-android.git
synced 2026-08-19 12:14:49 +02:00
renamed setBorderless to setImmersive and linked it to the fullscreen mode
This commit is contained in:
@@ -95,6 +95,11 @@ bool Window::setWindow(int width, int height, WindowSettings *settings)
|
||||
|
||||
Uint32 sdlflags = SDL_WINDOW_OPENGL;
|
||||
|
||||
// On Android we always must have fullscreen type FULLSCREEN_TYPE_DESKTOP
|
||||
#ifdef LOVE_ANDROID
|
||||
f.fstype = FULLSCREEN_TYPE_DESKTOP;
|
||||
#endif
|
||||
|
||||
if (f.fullscreen)
|
||||
{
|
||||
if (f.fstype == FULLSCREEN_TYPE_DESKTOP)
|
||||
@@ -246,7 +251,7 @@ bool Window::setWindow(int width, int height, WindowSettings *settings)
|
||||
showMessageBox("Could not set graphics mode", "Unsupported OpenGL version?", MESSAGEBOX_ERROR, true);
|
||||
|
||||
#ifdef LOVE_ANDROID
|
||||
love::android::setBorderless(f.borderless);
|
||||
love::android::setImmersive(f.fullscreen);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user