[Scummvm-cvs-logs] SF.net SVN: scummvm: [21993] scummvm/trunk/engines/scumm

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Mon Apr 17 16:46:02 CEST 2006


Revision: 21993
Author:   eriktorbjorn
Date:     2006-04-17 16:45:48 -0700 (Mon, 17 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21993&view=rev

Log Message:
-----------
Call updateScreen() from waitForTimer() (instead of usually right before it)
for smoother mouse cursor movement.

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/gfx.cpp
    scummvm/trunk/engines/scumm/scumm.cpp
Modified: scummvm/trunk/engines/scumm/gfx.cpp
===================================================================
--- scummvm/trunk/engines/scumm/gfx.cpp	2006-04-17 23:37:22 UTC (rev 21992)
+++ scummvm/trunk/engines/scumm/gfx.cpp	2006-04-17 23:45:48 UTC (rev 21993)
@@ -3115,7 +3115,6 @@
 
 		// Draw the current state to the screen and wait half a sec so the user
 		// can watch the effect taking place.
-		_system->updateScreen();
 		waitForTimer(30);
 	}
 }
@@ -3225,7 +3224,6 @@
 
 		if (++blits >= blits_before_refresh) {
 			blits = 0;
-			_system->updateScreen();
 			waitForTimer(30);
 		}
 	}
@@ -3233,7 +3231,6 @@
 	free(offsets);
 
 	if (blits != 0) {
-		_system->updateScreen();
 		waitForTimer(30);
 	}
 }
@@ -3271,7 +3268,6 @@
 					vs->pitch,
 					0, 0,
 					vs->w, vs->h - y);
-			_system->updateScreen();
 			waitForTimer(kPictureDelay);
 
 			y += step;
@@ -3290,7 +3286,6 @@
 					vs->pitch,
 					0, y,
 					vs->w, vs->h - y);
-			_system->updateScreen();
 			waitForTimer(kPictureDelay);
 
 			y += step;
@@ -3309,7 +3304,6 @@
 					vs->pitch,
 					0, 0,
 					vs->w - x, vs->h);
-			_system->updateScreen();
 			waitForTimer(kPictureDelay);
 
 			x += step;
@@ -3328,7 +3322,6 @@
 					vs->pitch,
 					x, 0,
 					vs->w - x, vs->h);
-			_system->updateScreen();
 			waitForTimer(kPictureDelay);
 
 			x += step;

Modified: scummvm/trunk/engines/scumm/scumm.cpp
===================================================================
--- scummvm/trunk/engines/scumm/scumm.cpp	2006-04-17 23:37:22 UTC (rev 21992)
+++ scummvm/trunk/engines/scumm/scumm.cpp	2006-04-17 23:45:48 UTC (rev 21993)
@@ -1472,7 +1472,6 @@
 	while (!_quit) {
 
 		updatePalette();
-		_system->updateScreen();
 
 		diff -= _system->getMillis();
 		waitForTimer(delta * 15 + diff);
@@ -1503,6 +1502,7 @@
 	while (!_quit) {
 		_sound->updateCD(); // Loop CD Audio if needed
 		parseEvents();
+		_system->updateScreen();
 		if (_system->getMillis() >= start_time + msec_delay)
 			break;
 		_system->delayMillis(10);


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