gdiplus: don't calculate the number of points in the arc by dividing

Vincent Povirk vincent at codeweavers.com
Fri Sep 4 16:26:46 CDT 2009


For bug 19697.

Due to rounding differences, it's possible for the calculated number of points in an arc to be greater than the number of 90 degree sweeps in the arc according to the loop that generates the points. When this happens, that loop will try to generate a section of the arc with a sweep angle of 0, causing a division by 0. Avoid this by using the loop to calculate the number of points.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090904/15378dcf/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-gdiplus-don-t-calculate-the-number-of-points-in-the.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090904/15378dcf/attachment-0001.txt>


More information about the wine-patches mailing list