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:
@@ -751,6 +751,8 @@ BSlider::DrawBar()
|
|||||||
// exclude the block thumb from the bar filling
|
// exclude the block thumb from the bar filling
|
||||||
|
|
||||||
BRect lowerFrame = frame.InsetByCopy(1, 1);
|
BRect lowerFrame = frame.InsetByCopy(1, 1);
|
||||||
|
lowerFrame.top++;
|
||||||
|
lowerFrame.left++;
|
||||||
BRect upperFrame = lowerFrame;
|
BRect upperFrame = lowerFrame;
|
||||||
|
|
||||||
if (Style() == B_BLOCK_THUMB) {
|
if (Style() == B_BLOCK_THUMB) {
|
||||||
@@ -765,10 +767,12 @@ BSlider::DrawBar()
|
|||||||
}
|
}
|
||||||
} else if (fUseFillColor) {
|
} else if (fUseFillColor) {
|
||||||
if (fOrientation == B_HORIZONTAL) {
|
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;
|
upperFrame.left = lowerFrame.right;
|
||||||
} else {
|
} else {
|
||||||
lowerFrame.top = floor(lowerFrame.bottom - Position() * lowerFrame.Height());
|
lowerFrame.top = floor(lowerFrame.bottom + 1 - Position()
|
||||||
|
* (lowerFrame.Height() + 1));
|
||||||
upperFrame.bottom = lowerFrame.top;
|
upperFrame.bottom = lowerFrame.top;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user