From ef0f7af63a5e1bd73fb34c601f996e7aadf848c0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Apr 2014 16:17:04 +0300 Subject: Improve visible check in widgets draw code. --- src/gui/widgets/widget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/widgets/widget.h') diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h index de5a79502..236c7b6ee 100644 --- a/src/gui/widgets/widget.h +++ b/src/gui/widgets/widget.h @@ -399,6 +399,9 @@ class Widget : public Widget2 bool isVisible() const A_WARN_UNUSED { return mVisible && (!mParent || mParent->isVisible()); } + bool isVisibleLocal() const A_WARN_UNUSED + { return mVisible; } + /** * Sets the base color of the widget. * -- cgit v1.2.3-60-g2f50