[Scummvm-cvs-logs] SF.net SVN: scummvm: [21994] scummvm/trunk/engines/queen

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Mon Apr 17 16:56:01 CEST 2006


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

Log Message:
-----------
Moved updateScreen() into delay() for smoother mouse cursor movement. This may
possibly make some other calls to updateScreen() unnecessary, but it's the
backend's responsibility to ignore unnecessary calls.

Modified Paths:
--------------
    scummvm/trunk/engines/queen/display.cpp
    scummvm/trunk/engines/queen/input.cpp
Modified: scummvm/trunk/engines/queen/display.cpp
===================================================================
--- scummvm/trunk/engines/queen/display.cpp	2006-04-17 23:45:48 UTC (rev 21993)
+++ scummvm/trunk/engines/queen/display.cpp	2006-04-17 23:55:42 UTC (rev 21994)
@@ -169,7 +169,6 @@
 	}
 	_system->setPalette(tempPal, start, numColors);
 	if (updateScreen) {
-		_system->updateScreen();
 		_vm->input()->delay(20);
 	}
 }
@@ -957,7 +956,6 @@
 				--y;
 			}
 			_system->copyRectToScreen(buf, 32, x, y, 32, 32);
-			_system->updateScreen();
 			_vm->input()->delay(10);
 		}
 	}
@@ -986,7 +984,6 @@
 		memset(p, c, 2);
 		memset(p + SCREEN_W, c, 2);
 		_system->copyRectToScreen(p, SCREEN_W, x, y, 2, 2);
-		_system->updateScreen();
 		_vm->input()->delay(10);
 	}
 }
@@ -1008,7 +1005,6 @@
 			++i;
 			_system->copyRectToScreen(p, SCREEN_W, x, y, 2, 2);
 		}
-		_system->updateScreen();
 		_vm->input()->delay(10);
 	}
 }

Modified: scummvm/trunk/engines/queen/input.cpp
===================================================================
--- scummvm/trunk/engines/queen/input.cpp	2006-04-17 23:45:48 UTC (rev 21993)
+++ scummvm/trunk/engines/queen/input.cpp	2006-04-17 23:55:42 UTC (rev 21994)
@@ -132,10 +132,12 @@
 			}
 		}
 
+		_system->updateScreen();
+
 		if (amount == 0)
 			break;
 
-		_system->delayMillis((amount > 20) ? 20 : amount);
+		_system->delayMillis((amount > 10) ? 10 : amount);
 	} while (_system->getMillis() < end);
 }
 


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