diff options
| author | Pierre Joye <pajoye@php.net> | 2007-09-09 13:05:51 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2007-09-09 13:05:51 +0000 |
| commit | 7ea43ee23aa9200e58597166ba0ed2de668a219f (patch) | |
| tree | b086f77fa342d0c9923195efbe4bf068dc546c8d /ext/gd | |
| parent | 20296c625d448ea8423e40737dcd542272dd44ba (diff) | |
| download | php-git-7ea43ee23aa9200e58597166ba0ed2de668a219f.tar.gz | |
- re-add fix for libgd #106, imagerectangle draws 1x1 rectangles
as 1x3 rectangles
Diffstat (limited to 'ext/gd')
| -rw-r--r-- | ext/gd/libgd/gd.c | 5 |
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; |
