]> granicus.if.org Git - php/commitdiff
Added missing bit from gd2.0.12 sync.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 9 Apr 2003 01:55:48 +0000 (01:55 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 9 Apr 2003 01:55:48 +0000 (01:55 +0000)
ext/gd/libgd/gd.h

index ed506172b0eee44b347d922ae9bf643a8b080770..2f982916ed0b976fd4cc56d1b59f5a16fc3e6797 100644 (file)
@@ -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 */