summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-09-11 19:26:44 +0000
committeralberth <alberth@openttd.org>2009-09-11 19:26:44 +0000
commita10d84197028de074d41d16e893bf041541cb566 (patch)
treed6651dd6b33feb277e429d57e4701de47128265b
parentafe190a216402e1427fc836a4cf2e13c067a67bd (diff)
downloadopenttd-a10d84197028de074d41d16e893bf041541cb566.tar.xz
(svn r17505) -Codechange: WWT_EMPTY is not a special case any more for invalidating widgets.
-rw-r--r--src/widget.cpp7
-rw-r--r--src/widget_type.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index b4c0c9819..e39712e9c 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -2272,13 +2272,6 @@ void NWidgetLeaf::Draw(const Window *w)
}
}
-void NWidgetLeaf::Invalidate(const Window *w) const
-{
- if (this->type == WWT_EMPTY) return; // Don't repaint dummy widgets.
- NWidgetBase::Invalidate(w);
-}
-
-
Scrollbar *NWidgetLeaf::FindScrollbar(Window *w, bool allow_next)
{
if (this->type == WWT_SCROLLBAR) return &w->vscroll;
diff --git a/src/widget_type.h b/src/widget_type.h
index b00f71803..fdab0d9eb 100644
--- a/src/widget_type.h
+++ b/src/widget_type.h
@@ -516,7 +516,6 @@ public:
/* virtual */ void SetupSmallestSize(Window *w, bool init_array);
/* virtual */ void Draw(const Window *w);
- /* virtual */ void Invalidate(const Window *w) const;
/* virtual */ Scrollbar *FindScrollbar(Window *w, bool allow_next = true);
static void InvalidateDimensionCache();