summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-11-22 18:28:14 +0000
committeralberth <alberth@openttd.org>2009-11-22 18:28:14 +0000
commit450e40b997ac0ac29c79abfeb1b96bb9bf2b8eed (patch)
tree92e398cb5c485eb3d525b5046c352b0beae302a3 /src/misc_gui.cpp
parent2b6f79251372ba2ac8fd59a4de2ee604e96c34af (diff)
downloadopenttd-450e40b997ac0ac29c79abfeb1b96bb9bf2b8eed.tar.xz
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index de3b49800..7cc932db5 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -114,7 +114,7 @@ public:
}
}
- 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 != LIW_BACKGROUND) return;
@@ -432,7 +432,7 @@ struct AboutWindow : public Window {
if (widget == AW_WEBSITE) SetDParamStr(0, "Website: http://www.openttd.org");
}
- 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 != AW_SCROLLING_TEXT) return;
@@ -559,7 +559,7 @@ public:
this->InitNested(desc);
}
- 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 != EMW_MESSAGE) return;
@@ -823,7 +823,7 @@ struct TooltipsWindow : public Window
return pt;
}
- 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)
{
/* There is only one widget. */
for (uint i = 0; i != this->paramcount; i++) SetDParam(i, this->params[i]);
@@ -1339,7 +1339,7 @@ struct QueryStringWindow : public QueryStringBaseWindow
this->LowerWidget(QUERY_STR_WIDGET_TEXT);
}
- 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 == QUERY_STR_WIDGET_DEFAULT && (this->flags & QSF_ENABLE_DEFAULT) == 0) {
this->GetWidget<NWidgetCore>(widget)->SetFill(0, 1);
@@ -1518,7 +1518,7 @@ struct QueryWindow : public 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)
{
if (widget != QUERY_WIDGET_TEXT) return;
@@ -1865,7 +1865,7 @@ public:
}
}
- 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 SLWW_CONTENT_DOWNLOAD_SEL: