From 2d80222257f5745fd86d61e1800cdc08e1b7d8b8 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Thu, 31 May 2018 22:28:51 +0200 Subject: [PATCH] Do not change the bordered style on Windows It's useless and it seems that the textures reload doesn't work everytime in this case. --- src/event.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/event.cxx b/src/event.cxx index 1bf7a1f..0ae3b94 100644 --- a/src/event.cxx +++ b/src/event.cxx @@ -1691,7 +1691,9 @@ CEvent::SetFullScreen (bool bFullScreen) } SDL_SetWindowFullscreen (g_window, bFullScreen ? SDL_WINDOW_FULLSCREEN : 0); +#ifndef _WIN32 SDL_SetWindowBordered (g_window, bFullScreen ? SDL_FALSE : SDL_TRUE); +#endif /* _WIN32 */ SDL_SetWindowGrab (g_window, bFullScreen ? SDL_TRUE : SDL_FALSE); if (!g_bFullScreen)