mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: platform: sdl: don't flood about closest display mode in case of no changes
This commit is contained in:
parent
ef1572b15b
commit
b946ed4625
@ -563,10 +563,11 @@ static qboolean VID_SetScreenResolution( int width, int height )
|
|||||||
want.driverdata = NULL;
|
want.driverdata = NULL;
|
||||||
want.format = want.refresh_rate = 0; // don't care
|
want.format = want.refresh_rate = 0; // don't care
|
||||||
|
|
||||||
if( !SDL_GetClosestDisplayMode(0, &want, &got) )
|
if( !SDL_GetClosestDisplayMode( 0, &want, &got ))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
Con_Reportf( "Got closest display mode: %ix%i@%i\n", got.w, got.h, got.refresh_rate);
|
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);
|
||||||
|
|
||||||
if( SDL_SetWindowDisplayMode( host.hWnd, &got) == -1 )
|
if( SDL_SetWindowDisplayMode( host.hWnd, &got) == -1 )
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user