The bar background was still drawing over some border lines which could cause flickering.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13351 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
39b86d2a8e
commit
6f54957024
@ -751,6 +751,8 @@ BSlider::DrawBar()
|
||||
// exclude the block thumb from the bar filling
|
||||
|
||||
BRect lowerFrame = frame.InsetByCopy(1, 1);
|
||||
lowerFrame.top++;
|
||||
lowerFrame.left++;
|
||||
BRect upperFrame = lowerFrame;
|
||||
|
||||
if (Style() == B_BLOCK_THUMB) {
|
||||
@ -765,10 +767,12 @@ BSlider::DrawBar()
|
||||
}
|
||||
} else if (fUseFillColor) {
|
||||
if (fOrientation == B_HORIZONTAL) {
|
||||
lowerFrame.right = floor(lowerFrame.left + Position() * lowerFrame.Width());
|
||||
lowerFrame.right = floor(lowerFrame.left - 1 + Position()
|
||||
* (lowerFrame.Width() + 1));
|
||||
upperFrame.left = lowerFrame.right;
|
||||
} else {
|
||||
lowerFrame.top = floor(lowerFrame.bottom - Position() * lowerFrame.Height());
|
||||
lowerFrame.top = floor(lowerFrame.bottom + 1 - Position()
|
||||
* (lowerFrame.Height() + 1));
|
||||
upperFrame.bottom = lowerFrame.top;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user