Browse Source

made love.window.setFullscreen() work

fysx 11 years ago
parent
commit
f31760c445
1 changed files with 4 additions and 0 deletions
  1. 4 0
      jni/love/src/modules/window/sdl/Window.cpp

+ 4 - 0
jni/love/src/modules/window/sdl/Window.cpp

@@ -535,6 +535,10 @@ bool Window::setFullscreen(bool fullscreen, Window::FullscreenType fstype)
 			SDL_GL_GetDrawableSize(window, &width, &height);
 #endif
 
+#ifdef LOVE_ANDROID
+			love::android::setImmersive(fullscreen);
+#endif
+
 			gfx->setViewportSize(width, height);
 		}