aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-09-04 18:57:12 +0000
committerTorbjörn Andersson2006-09-04 18:57:12 +0000
commitc49cf0c6ed9302f9ee0889f1699d0d6394ecbc72 (patch)
tree6a65d9b4cacf29ddc9b2e2afb8c880b17ea110be /engines/agi
parent92f2e9691edf0b7466841b8f7c99f2e50eb7feda (diff)
downloadscummvm-rg350-c49cf0c6ed9302f9ee0889f1699d0d6394ecbc72.tar.gz
scummvm-rg350-c49cf0c6ed9302f9ee0889f1699d0d6394ecbc72.tar.bz2
scummvm-rg350-c49cf0c6ed9302f9ee0889f1699d0d6394ecbc72.zip
This could possibly fix bug #1551524 ("MAXOSX: Cannot Backspace in AGI Games").
We have a similar backspace handling in several other engines. svn-id: r23827
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/agi.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp
index 4bc85bc5b4..aa17ba1fa3 100644
--- a/engines/agi/agi.cpp
+++ b/engines/agi/agi.cpp
@@ -217,7 +217,9 @@ static void process_events() {
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)