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:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user