aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-02-21 17:13:05 +0000
committerWillem Jan Palenstijn2009-02-21 17:13:05 +0000
commitdc446169ba12eb7170874e8f24c4f0d8e19e8cfe (patch)
treeac023fe860cf0ea89144eec5b4a88b8d264cb91c /engines
parentd23166c2a1bc8747dbc0684320eeba5f4ffd254f (diff)
downloadscummvm-rg350-dc446169ba12eb7170874e8f24c4f0d8e19e8cfe.tar.gz
scummvm-rg350-dc446169ba12eb7170874e8f24c4f0d8e19e8cfe.tar.bz2
scummvm-rg350-dc446169ba12eb7170874e8f24c4f0d8e19e8cfe.zip
fix translation of F-keys
svn-id: r38707
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/gfx/gfx_driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/gfx/gfx_driver.cpp b/engines/sci/gfx/gfx_driver.cpp
index 34c61f26d2..2464433e12 100644
--- a/engines/sci/gfx/gfx_driver.cpp
+++ b/engines/sci/gfx/gfx_driver.cpp
@@ -393,7 +393,7 @@ static sci_event_t scummvm_get_event(struct _gfx_driver *drv) {
input.type = SCI_EVT_KEYBOARD;
// SCI_K_F1 == 59 << 8
// SCI_K_SHIFT_F1 == 84 << 8
- input.data = (input.data - Common::KEYCODE_F1 + SCI_K_F1) << 8;
+ input.data = SCI_K_F1 + ((input.data - Common::KEYCODE_F1)<<8);
if (input.buckybits & (SCI_EVM_LSHIFT | SCI_EVM_RSHIFT))
input.character = input.data + ((SCI_K_SHIFT_F1 - SCI_K_F1) << 8);
else