]> granicus.if.org Git - php/commitdiff
MFH (dupe macro)
authorIlia Alshanetsky <iliaa@php.net>
Wed, 4 Jun 2003 14:58:33 +0000 (14:58 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 4 Jun 2003 14:58:33 +0000 (14:58 +0000)
ext/gd/libgd/gd.c

index 76161f2af9c961f91d06c66f182922800523bba0..5ca0efad9ab3e2053a4afdff95e1d46cd6977d4c 100644 (file)
@@ -7,9 +7,6 @@
 
 #include "php.h"
 
-/* 2.0.12: this now checks the clipping rectangle */
-#define gdImageBoundsSafeMacro(im, x, y) (!((((y) < (im)->cy1) || ((y) > (im)->cy2)) || (((x) < (im)->cx1) || ((x) > (im)->cx2))))
-
 #ifdef _MSC_VER
 # if _MSC_VER >= 1300
 /* in MSVC.NET the these are available but only for __cplusplus and not _MSC_EXTENSIONS */
@@ -895,7 +892,7 @@ static void gdImageAntiAliasedApply (gdImagePtr im, int px, int py)
         * 2.0.14: typo fixed. 2.0.15: moved down below declarations
         * to satisfy non-C++ compilers.
         */
-       if (!gdImageBoundsSafeMacro(im, px, py)) {
+       if (!gdImageBoundsSafe(im, px, py)) {
                return;
        }