summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-04-11 20:03:05 +0000
committerpeter1138 <peter1138@openttd.org>2007-04-11 20:03:05 +0000
commit71d6f5c5983cd0241866c1696828c79c651677f9 (patch)
tree77587305799a646e768961818ffd526e756449eb /src
parente735e8261f863d69ed772a544c066fb6db70a5b6 (diff)
downloadopenttd-71d6f5c5983cd0241866c1696828c79c651677f9.tar.xz
(svn r9595) -Fix (r9563): Transparency hotkeys didn't work
Diffstat (limited to 'src')
-rw-r--r--src/main_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index eb039bb95..a2af5eb22 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -2341,7 +2341,7 @@ static void MainWindowWndProc(Window *w, WindowEvent *e)
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;