summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-17 21:17:17 +0000
committerrubidium <rubidium@openttd.org>2011-11-17 21:17:17 +0000
commit02b884d923d5d273004b51b36e4054c0b7629b8d (patch)
tree22e28792da88a02cd509e629dc5a4b0a87a1c495 /src/window.cpp
parent4390f6f449226a756b10e42d012574a9d85aace2 (diff)
downloadopenttd-02b884d923d5d273004b51b36e4054c0b7629b8d.tar.xz
(svn r23244) -Feature: if the installation is ananas, try to get the b without b installed
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 02b1b918d..bc61d0c73 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2786,6 +2786,10 @@ void RelocateAllWindows(int neww, int newh)
/* XXX - this probably needs something more sane. For example specifying
* in a 'backup'-desc that the window should always be centered. */
switch (w->window_class) {
+ case WC_BOOTSTRAP:
+ ResizeWindow(w, neww, newh);
+ continue;
+
case WC_MAIN_TOOLBAR:
ResizeWindow(w, min(neww, *_preferred_toolbar_size) - w->width, 0);