[Scummvm-cvs-logs] SF.net SVN: scummvm:[39390] scummvm/trunk/engines/made

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat Mar 14 14:42:44 CET 2009


Revision: 39390
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39390&view=rev
Author:   thebluegr
Date:     2009-03-14 13:42:43 +0000 (Sat, 14 Mar 2009)

Log Message:
-----------
Do not update the screen while waiting

Modified Paths:
--------------
    scummvm/trunk/engines/made/screen.cpp
    scummvm/trunk/engines/made/script.cpp

Modified: scummvm/trunk/engines/made/screen.cpp
===================================================================
--- scummvm/trunk/engines/made/screen.cpp	2009-03-14 12:23:35 UTC (rev 39389)
+++ scummvm/trunk/engines/made/screen.cpp	2009-03-14 13:42:43 UTC (rev 39390)
@@ -811,7 +811,6 @@
 	uint32 startTime = _vm->_system->getMillis();
 	while (_vm->_system->getMillis() < startTime + delay) {
 		_vm->handleEvents();
-		_vm->_system->updateScreen();
 		_vm->_system->delayMillis(5);
 	}
 }

Modified: scummvm/trunk/engines/made/script.cpp
===================================================================
--- scummvm/trunk/engines/made/script.cpp	2009-03-14 12:23:35 UTC (rev 39389)
+++ scummvm/trunk/engines/made/script.cpp	2009-03-14 13:42:43 UTC (rev 39390)
@@ -159,7 +159,11 @@
 		/* We sleep a little after 500 opcodes to reduce the CPU load.
 		*/
 		if (++opcodeSleepCounter > 500) {
-			_vm->_screen->updateScreenAndWait(5);
+			uint32 startTime = _vm->_system->getMillis();
+			while (_vm->_system->getMillis() < startTime + 5) {
+				_vm->handleEvents();
+				_vm->_system->delayMillis(5);
+			}
 			opcodeSleepCounter = 0;
 		}
 


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