Browse Source

engine: platform: sdl: don't flood about closest display mode in case of no changes

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

1
engine/platform/sdl/vid_sdl.c

@ -566,6 +566,7 @@ static qboolean VID_SetScreenResolution( int width, int height )
if( !SDL_GetClosestDisplayMode( 0, &want, &got )) if( !SDL_GetClosestDisplayMode( 0, &want, &got ))
return false; return false;
if( got.w != want.w || got.h != want.h )
Con_Reportf( "Got closest display mode: %ix%i@%i\n", got.w, got.h, got.refresh_rate); Con_Reportf( "Got closest display mode: %ix%i@%i\n", got.w, got.h, got.refresh_rate);
if( SDL_SetWindowDisplayMode( host.hWnd, &got) == -1 ) if( SDL_SetWindowDisplayMode( host.hWnd, &got) == -1 )

Loading…
Cancel
Save