(svn r9595) -Fix (r9563): Transparency hotkeys didn't work
authorpeter1138
Wed, 11 Apr 2007 20:03:05 +0000
changeset 6943 6b60a3402c3f
parent 6942 b9a62411d76c
child 6944 9131836028e1
(svn r9595) -Fix (r9563): Transparency hotkeys didn't work
src/main_gui.cpp
--- a/src/main_gui.cpp	Tue Apr 10 20:58:04 2007 +0000
+++ b/src/main_gui.cpp	Wed Apr 11 20:03:05 2007 +0000
@@ -2341,7 +2341,7 @@
 			case '6' | WKC_CTRL:
 			case '7' | WKC_CTRL:
 				/* Transparency toggle hot keys */
-				TOGGLEBIT(_transparent_opt, e->we.keypress.key - '1');
+				TOGGLEBIT(_transparent_opt, e->we.keypress.keycode - ('1' | WKC_CTRL));
 				MarkWholeScreenDirty();
 				break;