* Simplified computation as suggested by Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30959 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9b9bbca910
commit
2b665ac362
@ -301,7 +301,7 @@ VolumeControl::DrawBar()
|
||||
|
||||
int32 min, max;
|
||||
GetLimits(&min, &max);
|
||||
float position = 1.0f * (max - min - max) / (max - min);
|
||||
float position = (float)min / (min - max);
|
||||
|
||||
be_control_look->DrawSliderBar(view, frame, frame, base, leftFillColor,
|
||||
rightFillColor, position, flags, Orientation());
|
||||
|
Loading…
x
Reference in New Issue
Block a user