diff options
author | alberth <alberth@openttd.org> | 2010-11-26 15:22:18 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-11-26 15:22:18 +0000 |
commit | f5c6fd1a2582be29c9a5376ccb638781fbf355f7 (patch) | |
tree | 8409730a69d50fb7fca3002c94102bb37e7c14b1 /src/town_gui.cpp | |
parent | 61637f493afd89ebab58ae6282b80fe326db33af (diff) | |
download | openttd-f5c6fd1a2582be29c9a5376ccb638781fbf355f7.tar.xz |
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index c3bf70312..7da0528a1 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -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()); |