Skip to content

Commit

Permalink
alpha is never zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Feb 13, 2022
1 parent e6a76f8 commit ff04a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magick/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -4732,7 +4732,7 @@ static double GetOpacityPixel(PolygonInfo *polygon_info,const double mid,
}
else
{
alpha=PerceptibleReciprocal(alpha);
alpha=1.0/alpha;
beta=delta.x*(y-q->y)-delta.y*(x-q->x);
distance=alpha*beta*beta;
}
Expand Down

0 comments on commit ff04a51

Please sign in to comment.