summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-02-11 18:24:12 +0000
committerterkhen <terkhen@openttd.org>2011-02-11 18:24:12 +0000
commit8196b03074184cd75e85263a07d9eca63f5c6721 (patch)
tree08c9fc4d5ea01c205db3e0d0d072ab375e0d5a4a /src/network
parentb1873526635efa1b6fb2e2ba636f0d3368a9389e (diff)
downloadopenttd-8196b03074184cd75e85263a07d9eca63f5c6721.tar.xz
(svn r22059) -Fix (r21179): Make the send chat message window follow the position of the status bar.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_chat_gui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/network_chat_gui.cpp b/src/network/network_chat_gui.cpp
index 539a49270..e610f9cbf 100644
--- a/src/network/network_chat_gui.cpp
+++ b/src/network/network_chat_gui.cpp
@@ -303,6 +303,8 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
this->SetFocusedWidget(NWCW_TEXTBOX);
InvalidateWindowData(WC_NEWS_WINDOW, 0, this->height);
_chat_tab_completion_active = false;
+
+ PositionNetworkChatWindow(this);
}
~NetworkChatWindow()
@@ -457,7 +459,7 @@ struct NetworkChatWindow : public QueryStringBaseWindow {
virtual Point OnInitialPosition(const WindowDesc *desc, int16 sm_width, int16 sm_height, int window_number)
{
- Point pt = { (_screen.width - max(sm_width, desc->default_width)) / 2, _screen.height - sm_height - FindWindowById(WC_STATUS_BAR, 0)->height };
+ Point pt = { 0, _screen.height - sm_height - FindWindowById(WC_STATUS_BAR, 0)->height };
return pt;
}