aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.cpp
diff options
context:
space:
mode:
authorMax Horn2003-03-26 12:30:20 +0000
committerMax Horn2003-03-26 12:30:20 +0000
commit3b1d4e4c06f00e7136a59beac6ea58b0715e0512 (patch)
tree4acd9747a4d3e3ae7a4de1ee2ebb4e3815b2edcc /gui/widget.cpp
parentc40989548345e00e26b42be5acbe9d11f87685bb (diff)
downloadscummvm-rg350-3b1d4e4c06f00e7136a59beac6ea58b0715e0512.tar.gz
scummvm-rg350-3b1d4e4c06f00e7136a59beac6ea58b0715e0512.tar.bz2
scummvm-rg350-3b1d4e4c06f00e7136a59beac6ea58b0715e0512.zip
Make it possible to disable popups/checkboxes
svn-id: r6864
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r--gui/widget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp
index f390d3b2e5..ed899ffc57 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -167,12 +167,12 @@ void CheckboxWidget::drawWidget(bool hilite) {
// If checked, draw cross inside the box
if (_state)
- gui->drawBitmap(checked_img, _x + 3, _y + 3, gui->_textcolor);
+ gui->drawBitmap(checked_img, _x + 3, _y + 3, !isEnabled() ? gui->_color : gui->_textcolor);
else
gui->fillRect(_x + 2, _y + 2, 10, 10, gui->_bgcolor);
// Finally draw the label
- gui->drawString(_label, _x + 20, _y + 3, _w, gui->_textcolor);
+ gui->drawString(_label, _x + 20, _y + 3, _w, !isEnabled() ? gui->_color : gui->_textcolor);
}
#pragma mark -