summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-02-14 21:22:47 +0000
committerfrosch <frosch@openttd.org>2015-02-14 21:22:47 +0000
commit64e943d32af130641380a2099b494e8b2a9b0f43 (patch)
treef7529b1aae1c4e1092dacc869b45dbf1a163443a
parent8e79158c7a014fe6eeed9e6bef7f1389bcc7210f (diff)
downloadopenttd-64e943d32af130641380a2099b494e8b2a9b0f43.tar.xz
(svn r27150) -Fix (r27146): Forgot scenario toolbar.
-rw-r--r--src/toolbar_gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index da47b2afa..00d844520 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -1990,6 +1990,11 @@ struct ScenarioEditorToolbarWindow : Window {
DoZoomInOutWindow(ZOOM_NONE, this);
}
+ virtual void FindWindowPlacementAndResize(int def_width, int def_height)
+ {
+ Window::FindWindowPlacementAndResize(_toolbar_width, def_height);
+ }
+
virtual void OnPaint()
{
this->SetWidgetDisabledState(WID_TE_DATE_BACKWARD, _settings_game.game_creation.starting_year <= MIN_YEAR);