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/company_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/company_gui.cpp')
-rw-r--r-- | src/company_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp index 44b724c0a..40ea52e8c 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -320,7 +320,7 @@ struct CompanyFinancesWindow : 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) { int type = _settings_client.gui.expenses_layout; switch (widget) { @@ -596,7 +596,7 @@ public: this->LowerWidget(SCLW_WIDGET_CLASS_GENERAL); } - 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) { /* Number of liveries in each class, used to determine the height of the livery matrix widget. */ static const byte livery_height[] = { @@ -1646,7 +1646,7 @@ struct CompanyWindow : Window this->DrawWidgets(); } - 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 CW_WIDGET_DESC_COMPANY_VALUE: @@ -1922,7 +1922,7 @@ struct BuyCompanyWindow : Window { this->DrawWidgets(); } - 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 BCW_FACE: |