forked from Mirrors/openclonk
SDL: Fix crash when opening resolution selector
parent
9fa16c5e14
commit
042e3c9602
|
@ -197,7 +197,7 @@ bool C4AbstractApp::GetIndexedDisplayMode(int32_t iIndex, int32_t *piXRes, int32
|
|||
*piXRes = mode.w;
|
||||
*piYRes = mode.h;
|
||||
*piBitDepth = SDL_BITSPERPIXEL(mode.format);
|
||||
*piRefreshRate = mode.refresh_rate;
|
||||
if (piRefreshRate) *piRefreshRate = mode.refresh_rate;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue