[Scummvm-cvs-logs] SF.net SVN: scummvm: [23827] scummvm/trunk/engines/agi/agi.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Mon Sep 4 20:57:16 CEST 2006


Revision: 23827
          http://svn.sourceforge.net/scummvm/?rev=23827&view=rev
Author:   eriktorbjorn
Date:     2006-09-04 11:57:12 -0700 (Mon, 04 Sep 2006)

Log Message:
-----------
This could possibly fix bug #1551524 ("MAXOSX: Cannot Backspace in AGI Games").
We have a similar backspace handling in several other engines.

Modified Paths:
--------------
    scummvm/trunk/engines/agi/agi.cpp

Modified: scummvm/trunk/engines/agi/agi.cpp
===================================================================
--- scummvm/trunk/engines/agi/agi.cpp	2006-09-03 08:39:06 UTC (rev 23826)
+++ scummvm/trunk/engines/agi/agi.cpp	2006-09-04 18:57:12 UTC (rev 23827)
@@ -217,7 +217,9 @@
 				break;
 			default:
 				if (key < 256 && !isalpha(key)) {
-					key = event.kbd.ascii;
+					// Make sure backspace works right (this fixes a small issue on OS X)
+					if (key != 8)
+						key = event.kbd.ascii;
 					break;
 				}
 				if (key_control)


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