From: Pierre Joye Date: Sun, 9 Sep 2007 13:05:51 +0000 (+0000) Subject: - re-add fix for libgd #106, imagerectangle draws 1x1 rectangles X-Git-Tag: php-5.2.5RC1~193 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ea43ee23aa9200e58597166ba0ed2de668a219f;p=php - re-add fix for libgd #106, imagerectangle draws 1x1 rectangles as 1x3 rectangles --- diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index 301072f4e7..e419a91883 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -2124,6 +2124,11 @@ void gdImageRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color) int half1 = 1; int t; + if (x1 == x2 && y1 == y2 && thick == 1) { + gdImageSetPixel(im, x1, y1, color); + return; + } + if (y2 < y1) { t=y1; y1 = y2;