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/settings_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/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 8d58d5246..c0f75b9c5 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -202,11 +202,6 @@ struct GameOptionsWindow : Window { } } - virtual void OnPaint() - { - this->DrawWidgets(); - } - virtual void DrawWidget(const Rect &r, int widget) const { switch (widget) { @@ -627,11 +622,6 @@ public: } } - virtual void OnPaint() - { - this->DrawWidgets(); - } - virtual void OnClick(Point pt, int widget, int click_count) { if (widget >= GDW_OPTIONS_START) { @@ -1555,11 +1545,6 @@ struct GameSettingsWindow : Window { this->vscroll->GetPosition(), this->vscroll->GetPosition() + this->vscroll->GetCapacity()); } - virtual void OnPaint() - { - this->DrawWidgets(); - } - virtual void OnClick(Point pt, int widget, int click_count) { if (widget != SETTINGSEL_OPTIONSPANEL) return; @@ -1840,11 +1825,6 @@ struct CustomCurrencyWindow : Window { } } - virtual void OnPaint() - { - this->DrawWidgets(); - } - virtual void OnClick(Point pt, int widget, int click_count) { int line = 0; |