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

sev at users.sourceforge.net sev at users.sourceforge.net
Mon Nov 20 21:27:30 CET 2006


Revision: 24753
          http://svn.sourceforge.net/scummvm/?rev=24753&view=rev
Author:   sev
Date:     2006-11-20 12:27:30 -0800 (Mon, 20 Nov 2006)

Log Message:
-----------
Fix regression which did not allow to enter save name.

Modified Paths:
--------------
    scummvm/trunk/engines/cine/various.cpp

Modified: scummvm/trunk/engines/cine/various.cpp
===================================================================
--- scummvm/trunk/engines/cine/various.cpp	2006-11-20 13:03:30 UTC (rev 24752)
+++ scummvm/trunk/engines/cine/various.cpp	2006-11-20 20:27:30 UTC (rev 24753)
@@ -3218,14 +3218,16 @@
 
 		manageEvents();
 		int ascii = getKeyData();
+		uint16 mouseButton, mouseX, mouseY;
 
+		getMouseData(0, &mouseButton, &mouseX, &mouseY);
+
+		if (mouseButton & 2)
+			quit = 2;
+		else if (mouseButton & 1)
+			quit = 1;
+
 		switch (ascii) {
-		case 13:
-			quit = 1;
-			break;
-		case 27: // esc
-			quit = 2;
-			break;
 		case 8: // backspace
 			if (inputPos <= 1) {
 				break;


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