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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user