summaryrefslogtreecommitdiff
path: root/src/gui/checkbox.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-21 21:27:59 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-21 21:27:59 +0000
commit58ffdbff028f763451f471639c6aecc530ca4d94 (patch)
treed2a2a3de9eb52ea25e6b4f361dbe64eaba309666 /src/gui/checkbox.cpp
parentf7e4e3acb009dc09dffc98ff7b59b0260e7ecc28 (diff)
downloadmana-58ffdbff028f763451f471639c6aecc530ca4d94.tar.gz
mana-58ffdbff028f763451f471639c6aecc530ca4d94.tar.bz2
mana-58ffdbff028f763451f471639c6aecc530ca4d94.tar.xz
mana-58ffdbff028f763451f471639c6aecc530ca4d94.zip
Some cleanups and button, radiobutton and checkbox now take into account
disabled status.
Diffstat (limited to 'src/gui/checkbox.cpp')
-rw-r--r--src/gui/checkbox.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/checkbox.cpp b/src/gui/checkbox.cpp
index 88b3f975..b231ec64 100644
--- a/src/gui/checkbox.cpp
+++ b/src/gui/checkbox.cpp
@@ -43,15 +43,15 @@ void CheckBox::drawBox(gcn::Graphics* graphics) {
getAbsolutePosition(x, y);
if (mMarked) {
- if (false /*disabled*/) {
- box = checkBoxDisabledChecked;
- } else {
+ if (isEnabled()) {
box = checkBoxChecked;
+ } else {
+ box = checkBoxDisabledChecked;
}
- } else if (false /*disabled*/) {
- box = checkBoxDisabled;
- } else {
+ } else if (isEnabled()) {
box = checkBoxNormal;
+ } else {
+ box = checkBoxDisabled;
}
x += 2;