(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user