aboutsummaryrefslogtreecommitdiff
path: root/simon/simon.cpp
diff options
context:
space:
mode:
authorMax Horn2004-02-24 22:39:42 +0000
committerMax Horn2004-02-24 22:39:42 +0000
commitd158280425efac5f4ec72e00fb2b7389cdfb5a75 (patch)
treef1bdab69e381b2a28320fdeb30936482565e5099 /simon/simon.cpp
parent70f910cbe19e9c7320a56fa48669f7a5e9df00e6 (diff)
downloadscummvm-rg350-d158280425efac5f4ec72e00fb2b7389cdfb5a75.tar.gz
scummvm-rg350-d158280425efac5f4ec72e00fb2b7389cdfb5a75.tar.bz2
scummvm-rg350-d158280425efac5f4ec72e00fb2b7389cdfb5a75.zip
the OSystem changes we discussed on the ML (note: renaming of the existing OSystem API is not yet finished); porters will have to fix their ports to get them to compile again
svn-id: r13036
Diffstat (limited to 'simon/simon.cpp')
-rw-r--r--simon/simon.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index dac8e1bc8f..dca760e181 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -585,10 +585,10 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst)
if (ConfMan.hasKey("slow_down") && ConfMan.getInt("slow_down") >= 1)
_speed = ConfMan.getInt("slow_down");
- _system->init_size(320, 200);
+ _system->initSize(320, 200);
// FIXME Use auto dirty rects cleanup code to reduce CPU usage
- _system->property(OSystem::PROP_WANT_RECT_OPTIM,0);
+ g_system->setFeatureState(OSystem::kFeatureAutoComputeDirtyRects, true);
}
SimonEngine::~SimonEngine() {
@@ -2888,9 +2888,7 @@ get_out:;
delay(10);
} while (i == _timer_4);
- OSystem::Property prop;
- prop.show_keyboard = false;
- g_system->property(OSystem::PROP_TOGGLE_VIRTUAL_KEYBOARD, &prop);
+ g_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false);
}
void SimonEngine::o_file_error(FillOrCopyStruct *fcs, bool save_error) {