[Scummvm-cvs-logs] SF.net SVN: scummvm:[38707] scummvm/trunk/engines/sci/gfx/gfx_driver.cpp

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Sat Feb 21 18:13:06 CET 2009


Revision: 38707
          http://scummvm.svn.sourceforge.net/scummvm/?rev=38707&view=rev
Author:   wjpalenstijn
Date:     2009-02-21 17:13:05 +0000 (Sat, 21 Feb 2009)

Log Message:
-----------
fix translation of F-keys

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gfx/gfx_driver.cpp

Modified: scummvm/trunk/engines/sci/gfx/gfx_driver.cpp
===================================================================
--- scummvm/trunk/engines/sci/gfx/gfx_driver.cpp	2009-02-21 16:20:53 UTC (rev 38706)
+++ scummvm/trunk/engines/sci/gfx/gfx_driver.cpp	2009-02-21 17:13:05 UTC (rev 38707)
@@ -393,7 +393,7 @@
 				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


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