(svn r17505) -Codechange: WWT_EMPTY is not a special case any more for invalidating widgets.
This commit is contained in:
@@ -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)
|
Scrollbar *NWidgetLeaf::FindScrollbar(Window *w, bool allow_next)
|
||||||
{
|
{
|
||||||
if (this->type == WWT_SCROLLBAR) return &w->vscroll;
|
if (this->type == WWT_SCROLLBAR) return &w->vscroll;
|
||||||
|
@@ -516,7 +516,6 @@ public:
|
|||||||
|
|
||||||
/* virtual */ void SetupSmallestSize(Window *w, bool init_array);
|
/* virtual */ void SetupSmallestSize(Window *w, bool init_array);
|
||||||
/* virtual */ void Draw(const Window *w);
|
/* virtual */ void Draw(const Window *w);
|
||||||
/* virtual */ void Invalidate(const Window *w) const;
|
|
||||||
/* virtual */ Scrollbar *FindScrollbar(Window *w, bool allow_next = true);
|
/* virtual */ Scrollbar *FindScrollbar(Window *w, bool allow_next = true);
|
||||||
|
|
||||||
static void InvalidateDimensionCache();
|
static void InvalidateDimensionCache();
|
||||||
|
Reference in New Issue
Block a user