From d42df5490110eccb39f2e380ff8cb9a0983e2f9d Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 31 Jul 2025 20:07:55 +0100 Subject: [PATCH] fix borderless sometimes not toggling on windows idk why windoze is like this, but gotta call this after SDL_SetWindowFullscreen here --- src/sdl/i_video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index fa55e62f1..c37445596 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -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(); } }