aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2006-02-01 15:11:39 +0000
committerJohannes Schickel2006-02-01 15:11:39 +0000
commit129e7846b51a2f0e10ba70393283d13ca90eb1df (patch)
tree8239d22d0a8a7113549e9877b49f327b861da87e /gui/widget.cpp
parent303d19afcbbddfccb420535c87fab3cced6c56eb (diff)
downloadscummvm-rg350-129e7846b51a2f0e10ba70393283d13ca90eb1df.tar.gz
scummvm-rg350-129e7846b51a2f0e10ba70393283d13ca90eb1df.tar.bz2
scummvm-rg350-129e7846b51a2f0e10ba70393283d13ca90eb1df.zip
Implemented shadow drawing, also extended the theme config again
(new color entries for highlighted buttons and for other widgets). Also added a 'highlight' check to the CheckBox widget. Changed the PopUpDialog to use a shadow around itself. svn-id: r20341
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r--gui/widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp
index 4e7bf5adf6..86fc25fa0b 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -182,7 +182,7 @@ void CheckboxWidget::setState(bool state) {
void CheckboxWidget::drawWidget(bool hilite) {
g_gui.theme()->drawCheckbox(Common::Rect(_x, _y, _x+_w, _y+_h), _label, _state,
- isEnabled() ? Theme::kStateEnabled : Theme::kStateDisabled);
+ isEnabled() ? (hilite ? Theme::kStateHighlight : Theme::kStateEnabled) : Theme::kStateDisabled);
}
#pragma mark -