mirror of
https://github.com/love2d/love-android.git
synced 2026-08-20 04:31:26 +02:00
Allowing enabling and disabling of immersive mode via borderless setting and love.window.setMode()
This commit is contained in:
@@ -244,6 +244,10 @@ bool Window::setWindow(int width, int height, WindowSettings *settings)
|
||||
|
||||
if (!gfx->setMode(width, height, curMode.settings.sRGB))
|
||||
showMessageBox("Could not set graphics mode", "Unsupported OpenGL version?", MESSAGEBOX_ERROR, true);
|
||||
|
||||
#ifdef LOVE_ANDROID
|
||||
love::android::setBorderless(f.borderless);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Make sure the mouse keeps its previous grab setting.
|
||||
|
||||
Reference in New Issue
Block a user