summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2007-09-09 13:05:51 +0000
committerPierre Joye <pajoye@php.net>2007-09-09 13:05:51 +0000
commit7ea43ee23aa9200e58597166ba0ed2de668a219f (patch)
treeb086f77fa342d0c9923195efbe4bf068dc546c8d
parent20296c625d448ea8423e40737dcd542272dd44ba (diff)
downloadphp-git-7ea43ee23aa9200e58597166ba0ed2de668a219f.tar.gz
- re-add fix for libgd #106, imagerectangle draws 1x1 rectangles
as 1x3 rectangles
-rw-r--r--ext/gd/libgd/gd.c5
1 files changed, 5 insertions, 0 deletions
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;