diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-04-09 01:55:48 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-04-09 01:55:48 +0000 |
commit | 7029ef01b39338397b76a4adcd59dccbb7afbace (patch) | |
tree | 29e6273330612e4247a4fd9c9aa461381612e997 /ext | |
parent | bb0f885d51b02519d8370e38712ecb8f68ba2541 (diff) | |
download | php-git-7029ef01b39338397b76a4adcd59dccbb7afbace.tar.gz |
Added missing bit from gd2.0.12 sync.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/gd/libgd/gd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/gd/libgd/gd.h b/ext/gd/libgd/gd.h index ed506172b0..2f982916ed 100644 --- a/ext/gd/libgd/gd.h +++ b/ext/gd/libgd/gd.h @@ -638,6 +638,7 @@ int gdImageCompare(gdImagePtr im1, gdImagePtr im2); } #endif -#define gdImageBoundsSafe(im, x, y) (!(y < 0 || y >= (im)->sy || x < 0 || x >= (im)->sx)) +/* 2.0.12: this now checks the clipping rectangle */ +#define gdImageBoundsSafe(im, x, y) (!((((y) < (im)->cy1) || ((y) > (im)->cy2)) || (((x) < (im)->cx1) || ((x) > (im)->cx2)))) #endif /* GD_H */ |