Merge pull request #23 from radarhere/add-width-to-shapes

Only draw pieslice's inner lines once
This commit is contained in:
Hugo 2018-09-29 15:42:16 +03:00 committed by GitHub
commit 5e647d9f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -854,7 +854,7 @@ ellipse(Imaging im, int x0, int y0, int x1, int y1,
if (i != start) {
if (mode == PIESLICE) {
if (x != cx || y != cy) {
if (j == 0 && (x != cx || y != cy)) {
if (width == 1) {
draw->line(im, x, y, cx, cy, ink);
draw->line(im, cx, cy, sx, sy, ink);