This fixes some of the drawing bugs; those were only visible under BeOS, though (both R5 + Dano).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13344 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-06-29 12:26:17 +00:00
parent c280e11b89
commit 09196077b8
+4 -4
View File
@@ -1003,7 +1003,7 @@ BSlider::BarFrame() const
frame.right -= 8.0f;
frame.bottom = frame.top + fBarThickness;
} else {
frame.left = (frame.Width() - fBarThickness) / 2.0f;
frame.left = floor((frame.Width() - fBarThickness) / 2.0f);
frame.top = 12.0f + (Label() ? textHeight : 0.0f) +
(fMaxLimitStr ? textHeight : 0.0f);
frame.right = frame.left + fBarThickness;
@@ -1017,7 +1017,7 @@ BSlider::BarFrame() const
frame.right -= 7.0f;
frame.bottom = frame.top + fBarThickness;
} else {
frame.left = (frame.Width() - fBarThickness) / 2.0f;
frame.left = floor((frame.Width() - fBarThickness) / 2.0f);
frame.top = 11.0f + (Label() ? textHeight : 0.0f) +
(fMaxLimitStr ? textHeight : 0.0f);
frame.right = frame.left + fBarThickness;
@@ -1069,7 +1069,7 @@ BSlider::ThumbFrame() const
frame.right = frame.left + 17.0f;
frame.bottom = frame.top + fBarThickness + 7.0f;
} else {
frame.left = (frame.Width() - fBarThickness) / 2.0f - 4;
frame.left = floor((frame.Width() - fBarThickness) / 2.0f) - 4;
frame.top = (float)floor(Position() * (_MaxPosition() - _MinPosition()) +
_MinPosition()) - 8.0f;
frame.right = frame.left + fBarThickness + 7.0f;
@@ -1084,7 +1084,7 @@ BSlider::ThumbFrame() const
(MinLimitLabel() || MaxLimitLabel() ? textHeight + 4.0f : 0.0f);
frame.top = frame.bottom - 7.0f;
} else {
frame.left = (frame.Width() - fBarThickness) / 2.0f - 3;
frame.left = floor((frame.Width() - fBarThickness) / 2.0f) - 3;
frame.top = (float)floor(Position() * (_MaxPosition() - _MinPosition())) +
_MinPosition() - 6.0f;
frame.right = frame.left + 7;