fix borderless sometimes not toggling on windows

idk why windoze is like this, but gotta call this after SDL_SetWindowFullscreen here
This commit is contained in:
Alug committed 2025-07-31 23:34:28 +02:00
1 parent e6256d448f
commit d42df54901
1 file changed
+2
+2
View File
@@ -1361,6 +1361,7 @@ static void SDLSetMode(INT32 width, INT32 height, SDL_bool fullscreen)
{
wasfullscreen = SDL_FALSE;
SDL_SetWindowFullscreen(window, 0);
I_SetBorderlessWindow();
}
// Reposition window only in windowed mode
@@ -1380,6 +1381,7 @@ static void SDLSetMode(INT32 width, INT32 height, SDL_bool fullscreen)
if (fullscreen)
{
SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
I_SetBorderlessWindow();
}
}