(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user