mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: fix vid_maximized always set to true when switching to windowed mode
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user