[Scummvm-cvs-logs] SF.net SVN: scummvm:[41118] scummvm/trunk/engines/kyra/scene_lol.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Tue Jun 2 01:53:30 CEST 2009
Revision: 41118
http://scummvm.svn.sourceforge.net/scummvm/?rev=41118&view=rev
Author: lordhoto
Date: 2009-06-01 23:53:30 +0000 (Mon, 01 Jun 2009)
Log Message:
-----------
Cleanup.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/scene_lol.cpp
Modified: scummvm/trunk/engines/kyra/scene_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/scene_lol.cpp 2009-06-01 23:38:56 UTC (rev 41117)
+++ scummvm/trunk/engines/kyra/scene_lol.cpp 2009-06-01 23:53:30 UTC (rev 41118)
@@ -1232,27 +1232,25 @@
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();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list