aboutsummaryrefslogtreecommitdiff
path: root/engines/touche/touche.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2007-04-01 15:04:11 +0000
committerTorbjörn Andersson2007-04-01 15:04:11 +0000
commitbc253d214b038845a5bb498ca51697245c864652 (patch)
tree307fae3e89c6a3129fdb4e1da6c425d20f0cd758 /engines/touche/touche.cpp
parent7c4a8c656591ba48f81dce90ac482d24724a593e (diff)
downloadscummvm-rg350-bc253d214b038845a5bb498ca51697245c864652.tar.gz
scummvm-rg350-bc253d214b038845a5bb498ca51697245c864652.tar.bz2
scummvm-rg350-bc253d214b038845a5bb498ca51697245c864652.zip
Slight simplification of last change. Make sure we don't "oversleep" in fast
mode. svn-id: r26351
Diffstat (limited to 'engines/touche/touche.cpp')
-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;
}