The update region for B_VERTICAL orientation is different; it now

also works correctly when fUseFillColor is used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13343 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-06-29 02:20:12 +00:00
parent a00fcbcdf8
commit c280e11b89
1 changed files with 4 additions and 1 deletions

View File

@ -610,7 +610,10 @@ BSlider::SetValue(int32 value)
// While it would be enough to do this dependent on fUseFillColor, // While it would be enough to do this dependent on fUseFillColor,
// that doesn't work out if DrawBar() has been overridden by a sub class // that doesn't work out if DrawBar() has been overridden by a sub class
oldThumbFrame.top = BarFrame().top; if (fOrientation == B_HORIZONTAL)
oldThumbFrame.top = BarFrame().top;
else
oldThumbFrame.right = BarFrame().right;
_SetLocation(loc); _SetLocation(loc);