summaryrefslogtreecommitdiff
path: root/src/gui/radiobutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/radiobutton.cpp')
-rw-r--r--src/gui/radiobutton.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/radiobutton.cpp b/src/gui/radiobutton.cpp
index de2d4f68..a7115752 100644
--- a/src/gui/radiobutton.cpp
+++ b/src/gui/radiobutton.cpp
@@ -43,15 +43,15 @@ void RadioButton::drawBox(gcn::Graphics* graphics)
getAbsolutePosition(x, y);
if (mMarked) {
- if (false /*disabled*/) {
- box = radioDisabledChecked;
- } else {
+ if (isEnabled()) {
box = radioChecked;
+ } else {
+ box = radioDisabledChecked;
}
- } else if (false /*disabled*/) {
- box = radioDisabled;
- } else {
+ } else if (isEnabled()) {
box = radioNormal;
+ } else {
+ box = radioDisabled;
}
x += 2;