aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2006-04-18 18:57:43 +0000
committerJohannes Schickel2006-04-18 18:57:43 +0000
commit96d23871b654e6d1cdeef302ba82afd370945a85 (patch)
treeebbf955245fcf471c782bff20336bf565a775dca
parenta9431edca2f5ed3a8e6753662822393755bc69e6 (diff)
downloadscummvm-rg350-96d23871b654e6d1cdeef302ba82afd370945a85.tar.gz
scummvm-rg350-96d23871b654e6d1cdeef302ba82afd370945a85.tar.bz2
scummvm-rg350-96d23871b654e6d1cdeef302ba82afd370945a85.zip
Oops forgot to use shadows for the PopUpWidget.
svn-id: r22013
-rw-r--r--gui/ThemeNew.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp
index 60b160b03a..2eabcc1ed7 100644
--- a/gui/ThemeNew.cpp
+++ b/gui/ThemeNew.cpp
@@ -627,12 +627,16 @@ void ThemeNew::drawPopUpWidget(const Common::Rect &r, const Common::String &sel,
if (!_initOk)
return;
+ Common::Rect r2 = shadowRect(r, kShadowSmall);
+
OverlayColor start = _colors[kPopUpWidgetStart], end = _colors[kPopUpWidgetEnd];
if (state == kStateHighlight) {
start = _colors[kPopUpWidgetHighlightStart];
end = _colors[kPopUpWidgetHighlightEnd];
}
+ drawShadow(r, surface(kDialogBkgdCorner), surface(kDialogBkgdTop), surface(kDialogBkgdLeft), surface(kDialogBkgd), kShadowSmall);
+
drawRectMasked(r, surface(kPopUpWidgetBkgdCorner), surface(kPopUpWidgetBkgdTop), surface(kPopUpWidgetBkgdLeft), surface(kPopUpWidgetBkgd),
(state == kStateDisabled) ? -30 : 256, start, end, _gradientFactors[kPopUpWidgetFactor]);
@@ -657,7 +661,7 @@ void ThemeNew::drawPopUpWidget(const Common::Rect &r, const Common::String &sel,
getFont()->drawString(&_screen, sel, text.left, text.top, text.width(), getColor(state), convertAligment(align), deltax, false);
}
- addDirtyRect(r);
+ addDirtyRect(r2);
}
void ThemeNew::drawCheckbox(const Common::Rect &r, const Common::String &str, bool checked, kState state) {