diff options
author | Johannes Schickel | 2009-06-01 23:53:30 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-06-01 23:53:30 +0000 |
commit | 762f63084955e63b40e2c248a05668fd8f805017 (patch) | |
tree | 0414fa9483d23cb65f72fbe25a5a750482c28faf /engines/kyra | |
parent | 9a0fff429f51832aafd1ad17fad94c206b68ffb5 (diff) | |
download | scummvm-rg350-762f63084955e63b40e2c248a05668fd8f805017.tar.gz scummvm-rg350-762f63084955e63b40e2c248a05668fd8f805017.tar.bz2 scummvm-rg350-762f63084955e63b40e2c248a05668fd8f805017.zip |
Cleanup.
svn-id: r41118
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/scene_lol.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/engines/kyra/scene_lol.cpp b/engines/kyra/scene_lol.cpp index 1a1d885163..e19d0650e4 100644 --- a/engines/kyra/scene_lol.cpp +++ b/engines/kyra/scene_lol.cpp @@ -1232,27 +1232,25 @@ void LoLEngine::movePartySmoothScrollTurnRight(int speed) { void LoLEngine::pitDropScroll(int numSteps) { _screen->copyRegionSpecial(0, 320, 200, 112, 0, 6, 176, 120, 0, 0, 176, 120, 0); - uint32 ctime = 0; - int del = 0; + uint32 etime = 0; for (int i = 0; i < numSteps; i++) { - ctime = _system->getMillis(); + etime = _system->getMillis() + _tickLength; int ys = ((30720 / numSteps) * i) >> 8; _screen->copyRegionSpecial(6, 176, 120, 0, ys, 0, 320, 200, 112, 0, 176, 120 - ys, 0); _screen->copyRegionSpecial(2, 320, 200, 112, 0, 0, 320, 200, 112, 120 - ys, 176, ys, 0); _screen->updateScreen(); - del = _tickLength - (_system->getMillis() - ctime); - if (del > 0) - delay(del); + delayUntil(etime); } + etime = _system->getMillis() + _tickLength; + _screen->copyRegionSpecial(2, 320, 200, 112, 0, 0, 320, 200, 112, 0, 176, 120, 0); _screen->updateScreen(); - del = _tickLength - (_system->getMillis() - ctime); - if (del > 0) - delay(del); + delayUntil(etime); + updateDrawPage2(); } |