aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/touche/touche.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp
index 61b765bc55..895bb0da6c 100644
--- a/engines/touche/touche.cpp
+++ b/engines/touche/touche.cpp
@@ -273,12 +273,12 @@ void ToucheEngine::mainLoop() {
if (nextFrame < now) {
nextFrame = now + 1;
}
- while (now < nextFrame) {
+ do {
processEvents();
_system->updateScreen();
+ _system->delayMillis(10);
now = _system->getMillis();
- _system->delayMillis((nextFrame - now >= 10) ? 10 : nextFrame - now);
- }
+ } while (now < nextFrame && !_fastMode);
frameTimeStamp = nextFrame;
}