(svn r9595) -Fix (r9563): Transparency hotkeys didn't work
authorpeter1138
Wed, 11 Apr 2007 20:03:05 +0000
changeset 6447 aa9fd2e33a1e
parent 6446 b121b3da44e8
child 6448 7a1305b9f475
(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;