summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-11-26 15:22:18 +0000
committeralberth <alberth@openttd.org>2010-11-26 15:22:18 +0000
commitf5c6fd1a2582be29c9a5376ccb638781fbf355f7 (patch)
tree8409730a69d50fb7fca3002c94102bb37e7c14b1 /src/network
parent61637f493afd89ebab58ae6282b80fe326db33af (diff)
downloadopenttd-f5c6fd1a2582be29c9a5376ccb638781fbf355f7.tar.xz
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_content_gui.cpp5
-rw-r--r--src/network/network_gui.cpp10
2 files changed, 0 insertions, 15 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index 8e5214ebc..44b37cc4a 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -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;
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 6db9f5d1b..6b1c15da7 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -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;