Browse Source

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

pull/2/head
Alibek Omarov 5 years ago
parent
commit
f2d588574c
  1. 1
      engine/platform/sdl/vid_sdl.c

1
engine/platform/sdl/vid_sdl.c

@ -895,7 +895,6 @@ rserr_t R_ChangeDisplaySettings( int width, int height, qboolean fullscreen ) @@ -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

Loading…
Cancel
Save