mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 16:24:16 +00:00
sdl: vid: fix engine window being restored immediately after being maximized
This commit is contained in:
parent
0579ecd30f
commit
f2d588574c
@ -895,7 +895,6 @@ rserr_t R_ChangeDisplaySettings( int width, int height, qboolean fullscreen )
|
|||||||
VID_RestoreScreenResolution();
|
VID_RestoreScreenResolution();
|
||||||
if( SDL_SetWindowFullscreen( host.hWnd, 0 ) )
|
if( SDL_SetWindowFullscreen( host.hWnd, 0 ) )
|
||||||
return rserr_invalid_fullscreen;
|
return rserr_invalid_fullscreen;
|
||||||
SDL_RestoreWindow( host.hWnd );
|
|
||||||
#if SDL_VERSION_ATLEAST( 2, 0, 5 )
|
#if SDL_VERSION_ATLEAST( 2, 0, 5 )
|
||||||
SDL_SetWindowResizable( host.hWnd, true );
|
SDL_SetWindowResizable( host.hWnd, true );
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user