summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-05-26 19:24:37 +0000
committerfrosch <frosch@openttd.org>2013-05-26 19:24:37 +0000
commit8c4714ad9099308691059f0a7a3cd6bbd33ce538 (patch)
treefd9e200b41664a8b401a6873fd71f31ccdc5d1f8 /src/window.cpp
parentb6d76c4d4cc3c8b00993aa6d035e79ffa133985e (diff)
downloadopenttd-8c4714ad9099308691059f0a7a3cd6bbd33ce538.tar.xz
(svn r25289) -Codechange: Store width of statusbar and main toolbar directly in the WindowDesc.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 8b429ef9f..8e6a05028 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -3126,7 +3126,7 @@ void RelocateAllWindows(int neww, int newh)
continue;
case WC_MAIN_TOOLBAR:
- ResizeWindow(w, min(neww, *_preferred_toolbar_size) - w->width, 0, false);
+ ResizeWindow(w, min(neww, w->window_desc->default_width) - w->width, 0, false);
top = w->top;
left = PositionMainToolbar(w); // changes toolbar orientation
@@ -3138,7 +3138,7 @@ void RelocateAllWindows(int neww, int newh)
break;
case WC_STATUS_BAR:
- ResizeWindow(w, min(neww, *_preferred_statusbar_size) - w->width, 0, false);
+ ResizeWindow(w, min(neww, w->window_desc->default_width) - w->width, 0, false);
top = newh - w->height;
left = PositionStatusbar(w);