diff options
author | Filippos Karapetis | 2009-03-14 13:42:43 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-03-14 13:42:43 +0000 |
commit | 6225bf905f95addf161790fb74268cf5fb0954c7 (patch) | |
tree | 5af9fbc930e97d098ea76b667972fa86369dd602 /engines/made | |
parent | 7da95bbd0072fefa84460b9bbdbbd282304d2235 (diff) | |
download | scummvm-rg350-6225bf905f95addf161790fb74268cf5fb0954c7.tar.gz scummvm-rg350-6225bf905f95addf161790fb74268cf5fb0954c7.tar.bz2 scummvm-rg350-6225bf905f95addf161790fb74268cf5fb0954c7.zip |
Do not update the screen while waiting
svn-id: r39390
Diffstat (limited to 'engines/made')
-rw-r--r-- | engines/made/screen.cpp | 1 | ||||
-rw-r--r-- | engines/made/script.cpp | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/engines/made/screen.cpp b/engines/made/screen.cpp index cae395f33d..79d43dad61 100644 --- a/engines/made/screen.cpp +++ b/engines/made/screen.cpp @@ -811,7 +811,6 @@ void Screen::updateScreenAndWait(int delay) { uint32 startTime = _vm->_system->getMillis(); while (_vm->_system->getMillis() < startTime + delay) { _vm->handleEvents(); - _vm->_system->updateScreen(); _vm->_system->delayMillis(5); } } diff --git a/engines/made/script.cpp b/engines/made/script.cpp index 7a7aa5407f..79f93f3b23 100644 --- a/engines/made/script.cpp +++ b/engines/made/script.cpp @@ -159,7 +159,11 @@ void ScriptInterpreter::runScript(int16 scriptObjectIndex) { /* We sleep a little after 500 opcodes to reduce the CPU load. */ if (++opcodeSleepCounter > 500) { - _vm->_screen->updateScreenAndWait(5); + uint32 startTime = _vm->_system->getMillis(); + while (_vm->_system->getMillis() < startTime + 5) { + _vm->handleEvents(); + _vm->_system->delayMillis(5); + } opcodeSleepCounter = 0; } |