diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 1cbbd5c5f..ad106c452 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -15190,8 +15190,8 @@ clutter_actor_transform_stage_point (ClutterActor *self, dy2 = v[2].y - v[3].y; det = DET (dx1, dx2, dy1, dy2); - if (CLUTTER_NEARBYINT (det) == 0) - return FALSE; + if (fabs (det) <= DBL_EPSILON) + return FALSE; RQ[0][2] = DET (px, dx2, py, dy2) / det; RQ[1][2] = DET (dx1, px, dy1, py) / det; @@ -15236,7 +15236,7 @@ clutter_actor_transform_stage_point (ClutterActor *self, det = (RQ[0][0] * ST[0][0]) + (RQ[0][1] * ST[0][1]) + (RQ[0][2] * ST[0][2]); - if (CLUTTER_NEARBYINT (det) == 0) + if (fabs (det) <= DBL_EPSILON) return FALSE; /*