summaryrefslogtreecommitdiff
path: root/src/news_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/news_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/news_gui.cpp')
-rw-r--r--src/news_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 89448edea..5639001b7 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -449,7 +449,7 @@ struct NewsWindow : Window {
}
}
- virtual EventState OnKeyPress(uint16 key, uint16 keycode)
+ virtual EventState OnKeyPress(WChar key, uint16 keycode)
{
if (keycode == WKC_SPACE) {
/* Don't continue. */