engine: fix vid_maximized always set to true when switching to windowed mode

This commit is contained in:
Steven Linn
2025-11-29 17:00:24 -07:00
committed by a1batross
parent a1dc006488
commit bf5821e4ea

View File

@@ -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;