diff options
Diffstat (limited to 'ext/gd/libgd/gd.c')
-rw-r--r-- | ext/gd/libgd/gd.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index 3e742561a6..5c3593ed1b 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -2608,24 +2608,17 @@ void gdImagePolygon (gdImagePtr im, gdPointPtr p, int n, int c) { int i; int lx, ly; - typedef void (*image_line)(gdImagePtr im, int x1, int y1, int x2, int y2, int color); - image_line draw_line; if (n <= 0) { return; } - if ( im->antialias) { - draw_line = gdImageAALine; - } else { - draw_line = gdImageLine; - } lx = p->x; ly = p->y; - draw_line(im, lx, ly, p[n - 1].x, p[n - 1].y, c); + gdImageLine(im, lx, ly, p[n - 1].x, p[n - 1].y, c); for (i = 1; i < n; i++) { p++; - draw_line(im, lx, ly, p->x, p->y, c); + gdImageLine(im, lx, ly, p->x, p->y, c); lx = p->x; ly = p->y; } @@ -2953,13 +2946,6 @@ void gdImageAlphaBlending (gdImagePtr im, int alphaBlendingArg) im->alphaBlendingFlag = alphaBlendingArg; } -void gdImageAntialias (gdImagePtr im, int antialias) -{ - if (im->trueColor){ - im->antialias = antialias; - } -} - void gdImageSaveAlpha (gdImagePtr im, int saveAlphaArg) { im->saveAlphaFlag = saveAlphaArg; |