summaryrefslogtreecommitdiff
path: root/src/bridge_gui.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2013-08-05 20:36:24 +0000
committermichi_cc <michi_cc@openttd.org>2013-08-05 20:36:24 +0000
commitb911f4a45256bbee790cb9fdb9b97ebeeddae691 (patch)
treed6587f0739fff3ecc397e9cf989a1f4e33f4b16b /src/bridge_gui.cpp
parent923eb009e8e3dafb224747e443fb366e76ec6b84 (diff)
downloadopenttd-b911f4a45256bbee790cb9fdb9b97ebeeddae691.tar.xz
(svn r25668) -Codechange: Pass proper Unicode UCS-4 characters instead of just UCS-2 to the window key press handlers.
Diffstat (limited to 'src/bridge_gui.cpp')
-rw-r--r--src/bridge_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp
index 04a6e3760..61c477aea 100644
--- a/src/bridge_gui.cpp
+++ b/src/bridge_gui.cpp
@@ -241,7 +241,7 @@ public:
}
}
- virtual EventState OnKeyPress(uint16 key, uint16 keycode)
+ virtual EventState OnKeyPress(WChar key, uint16 keycode)
{
const uint8 i = keycode - '1';
if (i < 9 && i < this->bridges->Length()) {