From f5c6fd1a2582be29c9a5376ccb638781fbf355f7 Mon Sep 17 00:00:00 2001 From: alberth Date: Fri, 26 Nov 2010 15:22:18 +0000 Subject: (svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint(). --- src/settings_gui.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/settings_gui.cpp') 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; -- cgit v1.2.3-54-g00ecf