summaryrefslogtreecommitdiff
path: root/src/window_gui.h
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/window_gui.h
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/window_gui.h')
-rw-r--r--src/window_gui.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 820d90e2b..433ed8729 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -19,6 +19,7 @@
#include "widget_type.h"
#include "core/smallvec_type.hpp"
#include "core/smallmap_type.hpp"
+#include "string_type.h"
/**
* Flags to describe the look of the frame
@@ -593,7 +594,7 @@ public:
* @return #ES_HANDLED if the key press has been handled and no other
* window should receive the event.
*/
- virtual EventState OnKeyPress(uint16 key, uint16 keycode) { return ES_NOT_HANDLED; }
+ virtual EventState OnKeyPress(WChar key, uint16 keycode) { return ES_NOT_HANDLED; }
virtual EventState OnHotkey(int hotkey);