aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2006-05-27 12:48:31 +0000
committerJohannes Schickel2006-05-27 12:48:31 +0000
commit1b2485f4af2010f262bd4f6e149a8c2d96b893cc (patch)
tree91b804e36f3c9e394c6a6ec03c41e66e70c0d65b
parentfa3f1fc15cfeddd3f38231beb59454bb02509387 (diff)
downloadscummvm-rg350-1b2485f4af2010f262bd4f6e149a8c2d96b893cc.tar.gz
scummvm-rg350-1b2485f4af2010f262bd4f6e149a8c2d96b893cc.tar.bz2
scummvm-rg350-1b2485f4af2010f262bd4f6e149a8c2d96b893cc.zip
Don't draw the shadow outside the scrollbar (should fix 'garbage' when moving the scrollbar)
svn-id: r22680
-rw-r--r--gui/ThemeNew.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp
index d99116a4cc..94fc94a4db 100644
--- a/gui/ThemeNew.cpp
+++ b/gui/ThemeNew.cpp
@@ -830,13 +830,15 @@ void ThemeNew::drawScrollbar(const Common::Rect &r, int sliderY, int sliderHeigh
}
r2 = r;
+ r2.left += 1;
+ r2.right -= 1;
r2.top += sliderY;
- r2.bottom = r2.top + sliderHeight;
+ r2.bottom = r2.top + sliderHeight - 1;
drawShadow(r2, surface(kSliderCorner), surface(kSliderTop), surface(kSliderLeft), surface(kSliderBkgd), kShadowSmall);
- r2.left += 2;
- r2.right -= 2;
+ r2.left += 1;
+ r2.right -= 1;
r2.bottom = r2.top + sliderHeight / 2 + surface(kScrollbarCorner)->h + 4;
drawRectMasked(r2, surface(kScrollbarCorner), surface(kScrollbarTop), surface(kScrollbarLeft), surface(kScrollbarBkgd), 256,