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/ai | |
parent | 61637f493afd89ebab58ae6282b80fe326db33af (diff) | |
download | openttd-f5c6fd1a2582be29c9a5376ccb638781fbf355f7.tar.xz |
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_gui.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index bf1357e71..850a0f28c 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -88,11 +88,6 @@ struct AIListWindow : public Window { } } - virtual void OnPaint() - { - this->DrawWidgets(); - } - virtual void DrawWidget(const Rect &r, int widget) const { switch (widget) { @@ -284,11 +279,6 @@ struct AISettingsWindow : public Window { } } - virtual void OnPaint() - { - this->DrawWidgets(); - } - virtual void DrawWidget(const Rect &r, int widget) const { if (widget != AIS_WIDGET_BACKGROUND) return; @@ -581,11 +571,6 @@ struct AIConfigWindow : public Window { } } - virtual void OnPaint() - { - this->DrawWidgets(); - } - virtual void DrawWidget(const Rect &r, int widget) const { switch (widget) { |