1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 04:59:11 +00:00

(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

@@ -138,11 +138,6 @@ public:
_network_content_client.RemoveCallback(this);
}
virtual void OnPaint()
{
this->DrawWidgets();
}
virtual void DrawWidget(const Rect &r, int widget) const
{
if (widget != NCDSWW_BACKGROUND) return;

View File

@@ -1937,11 +1937,6 @@ struct NetworkClientListPopupWindow : Window {
}
}
virtual void OnPaint()
{
this->DrawWidgets();
}
virtual void OnMouseLoop()
{
/* We selected an action */
@@ -2163,11 +2158,6 @@ struct NetworkJoinStatusWindow : Window {
this->InitNested(desc, 0);
}
virtual void OnPaint()
{
this->DrawWidgets();
}
virtual void DrawWidget(const Rect &r, int widget) const
{
if (widget != NJSW_BACKGROUND) return;