* 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:
Axel Dörfler 2009-06-04 12:27:09 +00:00
parent 9b9bbca910
commit 2b665ac362
1 changed files with 1 additions and 1 deletions

View File

@ -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());