From bf5821e4ea607fb314d841c4f32a6fb2b00f2199 Mon Sep 17 00:00:00 2001 From: Steven Linn Date: Sat, 29 Nov 2025 17:00:24 -0700 Subject: [PATCH] engine: fix vid_maximized always set to true when switching to windowed mode --- engine/platform/sdl2/vid_sdl2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/platform/sdl2/vid_sdl2.c b/engine/platform/sdl2/vid_sdl2.c index 666346d1..5fdc2d63 100644 --- a/engine/platform/sdl2/vid_sdl2.c +++ b/engine/platform/sdl2/vid_sdl2.c @@ -1013,7 +1013,7 @@ rserr_t R_ChangeDisplaySettings( int width, int height, window_mode_t window_mod SDL_SetWindowBordered( host.hWnd, SDL_TRUE ); SDL_SetWindowSize( host.hWnd, width, height ); - VID_SaveWindowSize( width, height, true ); + VID_SaveWindowSize( width, height, FBitSet( SDL_GetWindowFlags( host.hWnd ), SDL_WINDOW_MAXIMIZED ) != 0 ); } return rserr_ok;