summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-02 10:15:48 +0000
committerrubidium <rubidium@openttd.org>2009-11-02 10:15:48 +0000
commit4a970202a9101be3fdd22ff060140e46133490dc (patch)
treeb25b612ff18784db968ad7edcdd4d689883ee6ea /src/window.cpp
parent148d9b8e387cf7298421747917d17c00acc7bb99 (diff)
downloadopenttd-4a970202a9101be3fdd22ff060140e46133490dc.tar.xz
(svn r17947) -Codechange: make the statusbar, chat input and news window know of eachothers size so they don't get overlapped and don't get invisible (bottoms) of windows when a larger font is used
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index ff5ac700f..c2c725502 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2720,7 +2720,7 @@ void RelocateAllWindows(int neww, int newh)
case WC_SEND_NETWORK_MSG:
ResizeWindow(w, Clamp(neww, 320, 640) - w->width, 0);
- top = (newh - 26); // 26 = height of status bar + height of chat bar
+ top = newh - w->height - FindWindowById(WC_STATUS_BAR, 0)->height;
left = (neww - w->width) >> 1;
break;