summaryrefslogtreecommitdiff
path: root/src/guichan/include
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-14 02:54:44 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-14 02:54:44 +0300
commit84499779fcf0c8b5392a88f1c9311775e692ebef (patch)
treef390326a50eed73d8f8c62107979a4d81093ce52 /src/guichan/include
parent4ee30f47b491de0ace9b692072fd286cf12c7828 (diff)
downloadmv-84499779fcf0c8b5392a88f1c9311775e692ebef.tar.gz
mv-84499779fcf0c8b5392a88f1c9311775e692ebef.tar.bz2
mv-84499779fcf0c8b5392a88f1c9311775e692ebef.tar.xz
mv-84499779fcf0c8b5392a88f1c9311775e692ebef.zip
Improve a bit some gui controls speed.
Diffstat (limited to 'src/guichan/include')
-rw-r--r--src/guichan/include/guichan/widget.hpp3
1 files changed, 2 insertions, 1 deletions
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.