summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-29 19:19:30 +0000
committerrubidium <rubidium@openttd.org>2007-07-29 19:19:30 +0000
commitdd0fac984ba413cb3ab3fc77a1630671142f6abf (patch)
treee4d4604ee64935f479be9ecc8932383799a0a549 /src/window.cpp
parent59ff9474719b947e72567aa57d0f7a6cdbd66571 (diff)
downloadopenttd-dd0fac984ba413cb3ab3fc77a1630671142f6abf.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.cpp1
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;