1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix windows state after fullscreen

This commit is contained in:
Mathieu Schroeter 2017-08-03 15:15:33 +02:00
parent 7341bbd777
commit 1fb73742a9

View File

@ -1624,6 +1624,8 @@ void CEvent::SetFullScreen (bool bFullScreen)
m_bFullScreen = bFullScreen;
SDL_SetWindowFullscreen (g_window, bFullScreen ? SDL_WINDOW_FULLSCREEN : 0);
SDL_SetWindowBordered (g_window, bFullScreen ? SDL_FALSE : SDL_TRUE);
SDL_SetWindowGrab (g_window, bFullScreen ? SDL_TRUE : SDL_FALSE);
SDL_SetWindowPosition (g_window,
SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);