diff options
author | alberth <alberth@openttd.org> | 2009-11-22 18:28:14 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-11-22 18:28:14 +0000 |
commit | 450e40b997ac0ac29c79abfeb1b96bb9bf2b8eed (patch) | |
tree | 92e398cb5c485eb3d525b5046c352b0beae302a3 /src/settings_gui.cpp | |
parent | 2b6f79251372ba2ac8fd59a4de2ee604e96c34af (diff) | |
download | openttd-450e40b997ac0ac29c79abfeb1b96bb9bf2b8eed.tar.xz |
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 05494240c..f359b8f6c 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -229,7 +229,7 @@ struct GameOptionsWindow : Window { } } - virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *resize) + virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) { switch (widget) { case GOW_BASE_GRF_DESCRIPTION: @@ -569,7 +569,7 @@ public: SetDParam(0, sd->desc.str + value); } - virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *resize) + virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) { /* Only for the 'descriptions' */ int index = widget - GDW_OPTIONS_START; @@ -1477,7 +1477,7 @@ struct GameSettingsWindow : Window { this->vscroll.SetCount(_settings_main_page.Length()); } - virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *resize) + virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) { if (widget != SETTINGSEL_OPTIONSPANEL) return; @@ -1760,7 +1760,7 @@ struct CustomCurrencyWindow : Window { } } - virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *resize) + virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) { switch (widget) { /* Set the appropriate width for the edit 'buttons' */ |