mirror of https://github.com/stella-emu/stella.git
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:
parent
2e3a4b468f
commit
8ff2c276c3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue