From: Pierre Joye Date: Tue, 26 May 2009 13:08:59 +0000 (+0000) Subject: - expose gdImageGetTrueColorPixel in bundled lib X-Git-Tag: php-5.3.0RC3~141 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b3e2b19102ecd2eaa0babd7872a78696e8f3506;p=php - expose gdImageGetTrueColorPixel in bundled lib - fix bundled lib build --- diff --git a/ext/gd/libgd/gd.h b/ext/gd/libgd/gd.h index b974fe0b2f..34bf4c6444 100644 --- a/ext/gd/libgd/gd.h +++ b/ext/gd/libgd/gd.h @@ -293,6 +293,7 @@ void gdImageDestroy(gdImagePtr im); void gdImageSetPixel(gdImagePtr im, int x, int y, int color); +int gdImageGetTrueColorPixel (gdImagePtr im, int x, int y); int gdImageGetPixel(gdImagePtr im, int x, int y); void gdImageAABlend(gdImagePtr im); diff --git a/ext/gd/libgd/gd_filter.c b/ext/gd/libgd/gd_filter.c index 084e15c20e..22a393c126 100644 --- a/ext/gd/libgd/gd_filter.c +++ b/ext/gd/libgd/gd_filter.c @@ -5,13 +5,12 @@ #endif #include "gd_intern.h" + /* Filters function added on 2003/12 - * by Pierre-Alain Joye (pajoye@pearfr.org) + * by Pierre-Alain Joye (pierre@php.net) **/ /* Begin filters function */ -#ifndef HAVE_GET_TRUE_COLOR #define GET_PIXEL_FUNCTION(src)(src->trueColor?gdImageGetTrueColorPixel:gdImageGetPixel) -#endif /* invert src image */ int gdImageNegate(gdImagePtr src)