(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().

This commit is contained in:
alberth
2009-11-22 18:28:14 +00:00
parent 2b6f792513
commit 450e40b997
35 changed files with 82 additions and 76 deletions

View File

@@ -141,7 +141,7 @@ struct SubsidyListWindow : Window {
return 3 + num_awarded + num_not_awarded;
}
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 != SLW_PANEL) return;
Dimension d = maxdim(GetStringBoundingBox(STR_SUBSIDIES_OFFERED_TITLE), GetStringBoundingBox(STR_SUBSIDIES_SUBSIDISED_TITLE));