Skip to content

Commit 6b3e2b1

Browse files
committed
- expose gdImageGetTrueColorPixel in bundled lib
- fix bundled lib build
1 parent b682f42 commit 6b3e2b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/gd/libgd/gd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ void gdImageDestroy(gdImagePtr im);
293293

294294
void gdImageSetPixel(gdImagePtr im, int x, int y, int color);
295295

296+
int gdImageGetTrueColorPixel (gdImagePtr im, int x, int y);
296297
int gdImageGetPixel(gdImagePtr im, int x, int y);
297298

298299
void gdImageAABlend(gdImagePtr im);

ext/gd/libgd/gd_filter.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
#endif
66

77
#include "gd_intern.h"
8+
89
/* Filters function added on 2003/12
9-
* by Pierre-Alain Joye (pajoye@pearfr.org)
10+
* by Pierre-Alain Joye (pierre@php.net)
1011
**/
1112
/* Begin filters function */
12-
#ifndef HAVE_GET_TRUE_COLOR
1313
#define GET_PIXEL_FUNCTION(src)(src->trueColor?gdImageGetTrueColorPixel:gdImageGetPixel)
14-
#endif
1514

1615
/* invert src image */
1716
int gdImageNegate(gdImagePtr src)

0 commit comments

Comments
 (0)