From: cristy Date: Mon, 3 Sep 2012 18:10:10 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5016 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=884d1621350c669d173108223cc292de91228811;p=imagemagick --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 9f7de569f..1a1892406 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -3608,10 +3608,9 @@ static PolygonInfo **AcquirePolygonThreadSet(const DrawInfo *draw_info, return(polygon_info); } -static double GetFillAlpha(PolygonInfo *polygon_info, - const double mid,const MagickBooleanType fill, - const FillRule fill_rule,const double x,const double y, - double *stroke_alpha) +static double GetFillAlpha(PolygonInfo *polygon_info,const double mid, + const MagickBooleanType fill,const FillRule fill_rule,const double x, + const double y,double *stroke_alpha) { double alpha, @@ -3622,12 +3621,12 @@ static double GetFillAlpha(PolygonInfo *polygon_info, PointInfo delta; - register EdgeInfo - *p; - register const PointInfo *q; + register EdgeInfo + *p; + register ssize_t i; @@ -3688,7 +3687,7 @@ static double GetFillAlpha(PolygonInfo *polygon_info, } else { - alpha=1.0/alpha; + alpha=MagickEpsilonReciprocal(alpha); beta=delta.x*(y-q->y)-delta.y*(x-q->x); distance=alpha*beta*beta; }