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:
parent
7341bbd777
commit
1fb73742a9
@ -1624,6 +1624,8 @@ void CEvent::SetFullScreen (bool bFullScreen)
|
|||||||
|
|
||||||
m_bFullScreen = bFullScreen;
|
m_bFullScreen = bFullScreen;
|
||||||
SDL_SetWindowFullscreen (g_window, bFullScreen ? SDL_WINDOW_FULLSCREEN : 0);
|
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_SetWindowPosition (g_window,
|
||||||
SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
|
SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user