Disable 800x600 resolution in release mode (it's useful for debugging,
so I'll keep it in debug mode).
This commit is contained in:
parent
4ff8f6dfe5
commit
ea324a8252
@ -182,7 +182,10 @@ void OptionsScreenVideo::init()
|
||||
// for some odd reason, irrlicht sometimes fails to report the good
|
||||
// old standard resolutions
|
||||
// those are always useful for windowed mode
|
||||
// allow 800x600 only for debug mode
|
||||
#ifdef DEBUG
|
||||
bool found_800_600 = false;
|
||||
#endif
|
||||
bool found_1024_640 = false;
|
||||
bool found_1024_768 = false;
|
||||
|
||||
@ -200,7 +203,11 @@ void OptionsScreenVideo::init()
|
||||
|
||||
if (w == 800 && h == 600)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
found_800_600 = true;
|
||||
#else
|
||||
continue;
|
||||
#endif
|
||||
}
|
||||
else if (w == 1024 && h == 640)
|
||||
{
|
||||
@ -246,7 +253,9 @@ void OptionsScreenVideo::init()
|
||||
|
||||
if (w == 800 && h == 600)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
found_800_600 = true;
|
||||
#endif
|
||||
}
|
||||
else if (w == 1024 && h == 640)
|
||||
{
|
||||
@ -284,10 +293,12 @@ void OptionsScreenVideo::init()
|
||||
#undef ABOUT_EQUAL
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
if (!found_800_600)
|
||||
{
|
||||
res->addItem(L"800\u00D7600", "800x600", "/gui/screen43.png");
|
||||
}
|
||||
#endif
|
||||
if (!found_1024_640)
|
||||
{
|
||||
res->addItem(L"1024\u00D7640", "1024x640", "/gui/screen1610.png");
|
||||
|
Loading…
x
Reference in New Issue
Block a user