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/graph_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/graph_gui.cpp')
-rw-r--r-- | src/graph_gui.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index f646bb318..e5389a51a 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -61,11 +61,6 @@ struct GraphLegendWindow : Window { } } - virtual void OnPaint() - { - this->DrawWidgets(); - } - virtual void DrawWidget(const Rect &r, int widget) const { if (!IsInsideMM(widget, GLW_FIRST_COMPANY, MAX_COMPANIES + GLW_FIRST_COMPANY)) return; @@ -490,11 +485,6 @@ protected: } public: - virtual void OnPaint() - { - this->DrawWidgets(); - } - virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) { if (widget != this->graph_widget) return; @@ -1394,12 +1384,6 @@ struct PerformanceRatingDetailWindow : Window { } } - virtual void OnPaint() - { - /* Draw standard stuff */ - this->DrawWidgets(); - } - virtual void DrawWidget(const Rect &r, int widget) const { /* No need to draw when there's nothing to draw */ |