summaryrefslogtreecommitdiff
path: root/src/network
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/network
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/network')
-rw-r--r--src/network/network_chat_gui.cpp2
-rw-r--r--src/network/network_content_gui.cpp2
-rw-r--r--src/network/network_gui.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp
index 09d39b037..5fa311ba1 100644
--- a/src/network/network_chat_gui.cpp
+++ b/src/network/network_chat_gui.cpp
@@ -491,7 +491,7 @@ struct NetworkChatWindow : public Window {
}
}
- virtual EventState OnKeyPress(uint16 key, uint16 keycode)
+ virtual EventState OnKeyPress(WChar key, uint16 keycode)
{
EventState state = ES_NOT_HANDLED;
if (keycode == WKC_TAB) {
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index 358187cc2..3297b0071 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -800,7 +800,7 @@ public:
}
}
- virtual EventState OnKeyPress(uint16 key, uint16 keycode)
+ virtual EventState OnKeyPress(WChar key, uint16 keycode)
{
switch (keycode) {
case WKC_UP:
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index be028355e..7d2e47dbc 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -799,7 +799,7 @@ public:
this->SetDirty();
}
- virtual EventState OnKeyPress(uint16 key, uint16 keycode)
+ virtual EventState OnKeyPress(WChar key, uint16 keycode)
{
EventState state = ES_NOT_HANDLED;