(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().

This commit is contained in:
alberth
2010-11-26 15:22:18 +00:00
parent 61637f493a
commit f5c6fd1a25
34 changed files with 4 additions and 274 deletions

View File

@@ -338,11 +338,6 @@ public:
this->SetWidgetDisabledState(TVW_CHANGENAME, _networking && !_network_server);
}
virtual void OnPaint()
{
this->DrawWidgets();
}
virtual void SetStringParameters(int widget) const
{
if (widget == TVW_CAPTION) SetDParam(0, this->town->index);
@@ -734,11 +729,6 @@ public:
this->last_sorting = this->towns.GetListing();
}
virtual void OnPaint()
{
this->DrawWidgets();
}
virtual void SetStringParameters(int widget) const
{
if (widget == TDW_BOTTOM_TEXT) SetDParam(0, GetWorldPopulation());