Fixed #362 (Crazy screen resolutions) Was a silly mistake, a if block without surrounding { and }

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3443 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: b74e327b6e7af14a0f37111bf7cb1c6963e7c168
Former-commit-id: f610cef26a47362b6290698409eb4718e9f322ee
This commit is contained in:
pouillot 2011-03-12 19:37:03 +00:00
parent 63f45001be
commit 6af2accd92

View file

@ -314,8 +314,10 @@ void DisplayMenu::resetScreenSizes()
_aScreenSizes =
GfScrGetSupportedSizes(_nColorDepth, _eDisplayMode == eFullScreen, &_nNbScreenSizes);
if (_eVideoDetectMode == eManual || _aScreenSizes == (tScreenSize*)-1 || _aScreenSizes == 0)
{
_aScreenSizes = aDefScreenSizes;
_nNbScreenSizes = nDefScreenSizes;
}
// Update combo-box with new possible sizes.
const int nComboId = GetDynamicControlId("ScreenSizeCombo");