[Scummvm-cvs-logs] SF.net SVN: scummvm: [26351] scummvm/trunk/engines/touche/touche.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun Apr 1 17:04:12 CEST 2007


Revision: 26351
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26351&view=rev
Author:   eriktorbjorn
Date:     2007-04-01 08:04:11 -0700 (Sun, 01 Apr 2007)

Log Message:
-----------
Slight simplification of last change. Make sure we don't "oversleep" in fast
mode.

Modified Paths:
--------------
    scummvm/trunk/engines/touche/touche.cpp

Modified: scummvm/trunk/engines/touche/touche.cpp
===================================================================
--- scummvm/trunk/engines/touche/touche.cpp	2007-04-01 14:53:03 UTC (rev 26350)
+++ scummvm/trunk/engines/touche/touche.cpp	2007-04-01 15:04:11 UTC (rev 26351)
@@ -273,12 +273,12 @@
 		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;
 	}
 


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