Added OSystem::getDefaultGraphicsMode(); renamed OSystem::get_height() and get_width() to getHeight and getWidth(); augmented some doxygen comments in common/system.h
svn-id: r13284
This commit is contained in:
parent
b585b9ac4b
commit
e46ba2f29f
12 changed files with 145 additions and 67 deletions
|
@ -67,17 +67,13 @@ bool OSystem::setGraphicsMode(const char *name) {
|
|||
if (!name)
|
||||
return false;
|
||||
|
||||
const GraphicsMode *gm = getSupportedGraphicsModes();
|
||||
|
||||
// Sepcial case for the 'default' filter
|
||||
if (!scumm_stricmp(name, "normal") || !scumm_stricmp(name, "default")) {
|
||||
#ifdef _WIN32_WCE
|
||||
name = "1x";
|
||||
#else
|
||||
name = "2x";
|
||||
#endif
|
||||
return setGraphicsMode(getDefaultGraphicsMode());
|
||||
}
|
||||
|
||||
const GraphicsMode *gm = getSupportedGraphicsModes();
|
||||
|
||||
while (gm->name) {
|
||||
if (!scumm_stricmp(gm->name, name)) {
|
||||
return setGraphicsMode(gm->id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue