summaryrefslogtreecommitdiff
path: root/src/gui/button.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/button.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/button.cpp')
-rw-r--r--src/gui/button.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/button.cpp b/src/gui/button.cpp
index c508afe2..fb1a01ec 100644
--- a/src/gui/button.cpp
+++ b/src/gui/button.cpp
@@ -57,7 +57,7 @@ Button::Button(const std::string& caption):
void Button::draw(gcn::Graphics* graphics) {
int mode;
- if (false /*disabled*/) {
+ if (!isEnabled()) {
mode = 3;
}
else if (isPressed()) {