cvs: php4 /ext/gd/libgd gd.h
| From: | Ilia Alshanetsky | Date: | Wed, 09 Apr 2003 01:55:48 +0000 |
| Subject: | cvs: php4 /ext/gd/libgd gd.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20187@lists.php.net to get a copy of this message | ||
iliaa Tue Apr 8 21:55:48 2003 EDT
Modified files:
/php4/ext/gd/libgd gd.h
Log:
Added missing bit from gd2.0.12 sync.
Index: php4/ext/gd/libgd/gd.h
diff -u php4/ext/gd/libgd/gd.h:1.16 php4/ext/gd/libgd/gd.h:1.17
--- php4/ext/gd/libgd/gd.h:1.16 Sat Apr 5 12:23:55 2003
+++ php4/ext/gd/libgd/gd.h Tue Apr 8 21:55:48 2003
@@ -638,6 +638,7 @@
}
#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 */