Use fabs(), also fixes gcc4 builds.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28714 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2008-11-22 00:45:56 +00:00
parent 3e58fe9e70
commit 645285b091
+1 -1
View File
@@ -294,7 +294,7 @@ OffscreenClock::_InHand(BPoint point, int32 ticks, float radius)
float pointPhi = _GetPhi(point);
float handPhi = PI / 30.0 * ticks;
float delta = pointPhi - handPhi;
if (abs(delta) > DRAG_DELTA_PHI)
if (fabs(delta) > DRAG_DELTA_PHI)
return false;
return true;