Removed assert in OSystem WRT screen sizes; it should gracefully exit

instead of just simply dying.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2676 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2013-03-28 16:09:20 +00:00
parent 2e3a4b468f
commit 8ff2c276c3
1 changed files with 6 additions and 1 deletions

View File

@ -997,7 +997,12 @@ bool OSystem::queryVideoHardware()
}
// Various parts of the codebase assume a minimum screen size of 320x240
assert(myDesktopWidth >= 320 && myDesktopHeight >= 240);
if(!(myDesktopWidth >= 320 && myDesktopHeight >= 240))
{
logMessage("ERROR: queryVideoHardware failed, "
"window 320x240 or larger required", 0);
return false;
}
// Then get the valid fullscreen modes
// If there are any errors, just use the desktop resolution