diff options
author | rubidium <rubidium@openttd.org> | 2009-11-02 10:15:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-02 10:15:48 +0000 |
commit | 4a970202a9101be3fdd22ff060140e46133490dc (patch) | |
tree | b25b612ff18784db968ad7edcdd4d689883ee6ea /src/window.cpp | |
parent | 148d9b8e387cf7298421747917d17c00acc7bb99 (diff) | |
download | openttd-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.cpp | 2 |
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; |