[Scummvm-cvs-logs] SF.net SVN: scummvm: [21413] scummvm/trunk/engines/cine

sev at users.sourceforge.net sev at users.sourceforge.net
Wed Mar 22 19:41:03 CET 2006


Revision: 21413
Author:   sev
Date:     2006-03-22 19:40:23 -0800 (Wed, 22 Mar 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21413&view=rev

Log Message:
-----------
Made mouse more responsive

Modified Paths:
--------------
    scummvm/trunk/engines/cine/gfx.cpp
    scummvm/trunk/engines/cine/main_loop.cpp
    scummvm/trunk/engines/cine/main_loop.h
Modified: scummvm/trunk/engines/cine/gfx.cpp
===================================================================
--- scummvm/trunk/engines/cine/gfx.cpp	2006-03-23 03:17:47 UTC (rev 21412)
+++ scummvm/trunk/engines/cine/gfx.cpp	2006-03-23 03:40:23 UTC (rev 21413)
@@ -316,8 +316,6 @@
 	}
 
 	g_system->copyRectToScreen(screenBuffer, 320, 0, 0, 320, 200);
-	g_system->updateScreen();
-	g_system->delayMillis(100);
 }
 
 void drawSpriteRaw(uint8 *spritePtr, uint8 *maskPtr, int16 width, int16 height,

Modified: scummvm/trunk/engines/cine/main_loop.cpp
===================================================================
--- scummvm/trunk/engines/cine/main_loop.cpp	2006-03-23 03:17:47 UTC (rev 21412)
+++ scummvm/trunk/engines/cine/main_loop.cpp	2006-03-23 03:40:23 UTC (rev 21413)
@@ -41,7 +41,7 @@
 uint16 mouseUpdateStatus;
 uint16 dummyU16;
 
-void manageEvents(void) {
+void manageEvents(int count) {
 	OSystem::Event event;
 
 	while (g_system->pollEvent(event)) {
@@ -64,11 +64,20 @@
 		}
 	}
 
-	mouseData.left = mouseLeft;
-	mouseData.right = mouseRight;
+	if (count) {
+		mouseData.left = mouseLeft;
+		mouseData.right = mouseRight;
+		mouseLeft = 0;
+		mouseRight = 0;
+	}
 
-	mouseLeft = 0;
-	mouseRight = 0;
+	int i;
+
+	for (i = 0; i < count; i++) {
+		g_system->updateScreen();
+		g_system->delayMillis(10);
+		manageEvents(0);
+	}
 }
 
 void getMouseData(uint16 param, uint16 *pButton, uint16 *pX, uint16 *pY) {

Modified: scummvm/trunk/engines/cine/main_loop.h
===================================================================
--- scummvm/trunk/engines/cine/main_loop.h	2006-03-23 03:17:47 UTC (rev 21412)
+++ scummvm/trunk/engines/cine/main_loop.h	2006-03-23 03:40:23 UTC (rev 21413)
@@ -28,7 +28,7 @@
 namespace Cine {
 
 void mainLoop(int bootScriptIdx);
-void manageEvents(void);
+void manageEvents(int count = 10);
 
 } // End of namespace Cine
 


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