sdl: vid: fix engine window being restored immediately after being maximized

This commit is contained in:
Alibek Omarov 2019-06-30 16:19:34 +03:00
parent 0579ecd30f
commit f2d588574c

View File

@ -895,7 +895,6 @@ rserr_t R_ChangeDisplaySettings( int width, int height, qboolean fullscreen )
VID_RestoreScreenResolution();
if( SDL_SetWindowFullscreen( host.hWnd, 0 ) )
return rserr_invalid_fullscreen;
SDL_RestoreWindow( host.hWnd );
#if SDL_VERSION_ATLEAST( 2, 0, 5 )
SDL_SetWindowResizable( host.hWnd, true );
#endif