(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().

This commit is contained in:
alberth
2010-11-26 15:22:18 +00:00
parent 61637f493a
commit f5c6fd1a25
34 changed files with 4 additions and 274 deletions

View File

@@ -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;