diff options
Diffstat (limited to 'gui/ThemeNew.cpp')
-rw-r--r-- | gui/ThemeNew.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp index 0bec7b840a..84ce4d1dad 100644 --- a/gui/ThemeNew.cpp +++ b/gui/ThemeNew.cpp @@ -790,19 +790,14 @@ void ThemeNew::drawScrollbar(const Common::Rect &r, int sliderY, int sliderHeigh } r2 = r; - r2.left += 2; - r2.right -= 2; r2.top += sliderY; r2.bottom = r2.top + sliderHeight; - Common::Rect r3(r2.left - _shadowLeftWidth/2, r2.top - _shadowTopHeight/2, r2.right + _shadowRightWidth/2, r2.bottom + _shadowBottomHeight/2); - Common::Rect r4(r2.left - _shadowLeftWidth/2, r2.top - _shadowTopHeight/2, r2.right + _shadowRightWidth/2 - 1, r2.bottom + _shadowBottomHeight/2 - 1); - // shadow - drawRectMasked(r3, surface(kSliderCorner), surface(kSliderTop), surface(kSliderLeft), surface(kSliderBkgd), - kShadowTr2, _system->RGBToColor(0, 0, 0), _system->RGBToColor(0, 0, 0)); - drawRectMasked(r4, surface(kSliderCorner), surface(kSliderTop), surface(kSliderLeft), surface(kSliderBkgd), - kShadowTr3, _system->RGBToColor(0, 0, 0), _system->RGBToColor(0, 0, 0)); - + drawShadow(r2, surface(kSliderCorner), surface(kSliderTop), surface(kSliderLeft), surface(kSliderBkgd), kShadowSmall, false); + + r2.left += 2; + r2.right -= 2; + r2.bottom = r2.top + sliderHeight / 2 + surface(kScrollbarCorner)->h + 4; drawRectMasked(r2, surface(kScrollbarCorner), surface(kScrollbarTop), surface(kScrollbarLeft), surface(kScrollbarBkgd), 256, sliderStart, sliderEnd, _gradientFactors[kScrollbarFactor]); |