diff options
author | Willem Jan Palenstijn | 2009-02-21 17:13:05 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2009-02-21 17:13:05 +0000 |
commit | dc446169ba12eb7170874e8f24c4f0d8e19e8cfe (patch) | |
tree | ac023fe860cf0ea89144eec5b4a88b8d264cb91c /engines | |
parent | d23166c2a1bc8747dbc0684320eeba5f4ffd254f (diff) | |
download | scummvm-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.cpp | 2 |
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 |