diff options
author | rubidium <rubidium@openttd.org> | 2007-07-29 19:19:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-29 19:19:30 +0000 |
commit | 000b582423e26a7be53e6848b33d74306eb5f0a0 (patch) | |
tree | e4d4604ee64935f479be9ecc8932383799a0a549 /src/window.cpp | |
parent | 17370d5ae7db88664dddf561ca7247d33d74fbcf (diff) | |
download | openttd-000b582423e26a7be53e6848b33d74306eb5f0a0.tar.xz |
(svn r10726) -Codechange: make it possible that the chat window is less than 640 pixels.
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp index 0427dd309..e8a6b8802 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -2082,6 +2082,7 @@ void RelocateAllWindows(int neww, int newh) break; 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 left = (neww - w->width) >> 1; break; |