From 84499779fcf0c8b5392a88f1c9311775e692ebef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 14 Sep 2012 02:54:44 +0300 Subject: Improve a bit some gui controls speed. --- src/guichan/include/guichan/widget.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/guichan/include') diff --git a/src/guichan/include/guichan/widget.hpp b/src/guichan/include/guichan/widget.hpp index 4d43b5460..f4429dbee 100644 --- a/src/guichan/include/guichan/widget.hpp +++ b/src/guichan/include/guichan/widget.hpp @@ -367,7 +367,8 @@ namespace gcn * @see setVisible * @since 0.1.0 */ - bool isVisible() const; + bool isVisible() const + { return mVisible && (!mParent || mParent->isVisible()); } /** * Sets the base color of the widget. -- cgit v1.2.3-70-g09d2