diff options
author | Jamieson Christian | 2003-05-15 20:34:42 +0000 |
---|---|---|
committer | Jamieson Christian | 2003-05-15 20:34:42 +0000 |
commit | 2c3ee5aed031e748e98769798f9ef6a689a68876 (patch) | |
tree | 8383880f89c83f93986df397d233bf1c0a9bb100 | |
parent | 420095e1f34e57b7b6137ad12910ddc8e02f3ebd (diff) | |
download | scummvm-rg350-2c3ee5aed031e748e98769798f9ef6a689a68876.tar.gz scummvm-rg350-2c3ee5aed031e748e98769798f9ef6a689a68876.tar.bz2 scummvm-rg350-2c3ee5aed031e748e98769798f9ef6a689a68876.zip |
Fixed main timing loop
svn-id: r7534
-rw-r--r-- | scumm/scummvm.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index fc93f83e7e..34a1d935c4 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -2162,7 +2162,7 @@ void Scumm::updatePalette() { void Scumm::mainRun() { int delta = 0; - int diff = 0; + int diff = _system->get_msecs(); for(;;) { #ifdef __PALM_OS__ @@ -2172,11 +2172,10 @@ void Scumm::mainRun() { updatePalette(); _system->update_screen(); + diff -= _system->get_msecs(); waitForTimer(delta * 15 + diff); - diff = _system->get_msecs(); delta = scummLoop(delta); - diff -= _system->get_msecs(); if (delta < 1) // Ensure we don't get into a loop delta = 1; // by not decreasing sleepers. |