cvs: php4(PHP_4_3) /ext/gd/libgd gd.h
| From: | Ilia Alshanetsky | Date: | Wed, 09 Apr 2003 01:55:56 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/gd/libgd gd.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20188@lists.php.net to get a copy of this message | ||
iliaa Tue Apr 8 21:55:56 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/gd/libgd gd.h
Log:
MFH
Index: php4/ext/gd/libgd/gd.h
diff -u php4/ext/gd/libgd/gd.h:1.7.2.5 php4/ext/gd/libgd/gd.h:1.7.2.6
--- php4/ext/gd/libgd/gd.h:1.7.2.5 Sat Apr 5 12:24:15 2003
+++ php4/ext/gd/libgd/gd.h Tue Apr 8 21:55:56 2003
@@ -602,6 +602,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 */