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/industry_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/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index b574cee06..4f9aecaec 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -470,11 +470,6 @@ public: } } - virtual void OnPaint() - { - this->DrawWidgets(); - } - virtual void OnClick(Point pt, int widget, int click_count) { switch (widget) { @@ -1234,11 +1229,6 @@ public: if (widget == IDW_DROPDOWN_CRITERIA) SetDParam(0, IndustryDirectoryWindow::sorter_names[this->industries.SortType()]); } - virtual void OnPaint() - { - this->DrawWidgets(); - } - virtual void DrawWidget(const Rect &r, int widget) const { switch (widget) { @@ -2585,11 +2575,6 @@ struct IndustryCargoesWindow : public Window { } } - virtual void OnPaint() - { - this->DrawWidgets(); - } - virtual void OnResize() { this->vscroll->SetCapacityFromWidget(this, ICW_PANEL); |