Allowing enabling and disabling of immersive mode via borderless setting and love.window.setMode()

This commit is contained in:
fysx
2015-01-20 16:01:43 +01:00
parent 36216c16be
commit 42f6beaa7e
4 changed files with 64 additions and 7 deletions
@@ -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.