summaryrefslogtreecommitdiff
path: root/tests/gdimagefilledarc
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaceChristoph M. Becker2019-01-161-1/+1
|
* Fix #351: gdImageFilledArc() doesn't properly draw piesChristoph M. Becker2019-01-165-0/+34
| | | | | | | | | | | The fix for PHP bug 43828[1] changed the algorithm from drawing filled pies from drawing multiple triangles to drawing a single polygon. Due to quirks of the filled polygon drawing algorithm, we had to filter out extraneous vertices. This lead, however, to a bug regarding displaced starting and ending points near 90° and 270° degrees, which we fix by reinserting these vertices if they had been removed. [1] <https://bugs.php.net/bug.php?id=43828>
* tests: sync feature enable lists in cmake files #382Mike Frysinger2017-02-151-0/+2
|
* No pixel of a filled arc must ever be drawn multiple timesChristoph M. Becker2016-07-175-0/+35
Otherwise we get artifacts regarding transparency. That happens with the current implementation of gdImageFilledArc() unless gdChord or gdNoFill are set. When gdPie is set, however, the filled arc is drawn in wedges, which are polygons of three points, and so some overlap is natural. To resolve the issue, we stick with the current algorithm of calculating the wedges, but instead of drawing each polygon separately, we put the *relevant* points in a large array, and draw a single polygon. That also is supposed to improve the performance considerably. Note that this modification will change the results when gdImageSetStyle() or gdImageSetBrush() are used, but we believe that this modification is also an improvement in this regard, even though it still might not make much sense to use these functions with gdImageFilledArc().