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/gui/widgets/checkbox.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/checkbox.cpp') diff --git a/src/gui/widgets/checkbox.cpp b/src/gui/widgets/checkbox.cpp index 759ca9015..344b99eb0 100644 --- a/src/gui/widgets/checkbox.cpp +++ b/src/gui/widgets/checkbox.cpp @@ -178,9 +178,9 @@ void CheckBox::drawBox(gcn::Graphics *const graphics) { const Image *box; - if (isEnabled()) + if (mEnabled && isVisible()) { - if (isSelected()) + if (mSelected) { if (mHasMouse) box = checkBoxCheckedHi; @@ -197,7 +197,7 @@ void CheckBox::drawBox(gcn::Graphics *const graphics) } else { - if (isSelected()) + if (mSelected) box = checkBoxDisabledChecked; else box = checkBoxDisabled; -- cgit v1.2.3-60-g2f50