SDL: Fix crash when opening resolution selector

directional-lights
Lukas Werling 2016-05-07 22:03:25 +02:00
parent 9fa16c5e14
commit 042e3c9602
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}