summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-05-01 23:50:25 +0000
committerfoobar <sniper@php.net>2003-05-01 23:50:25 +0000
commit6d9c0036b7d8cdde6f0117b0c160aff89ed57ab3 (patch)
tree52c94933cae9db82d26f2b6a20c936bf0e932df0
parentf4a30e483c6f1d73f5bc4165aa70ecae9eff2c37 (diff)
downloadphp-git-6d9c0036b7d8cdde6f0117b0c160aff89ed57ab3.tar.gz
MFH: - Fixed bug #23427 (compile failure with GD 1.8.3)
-rw-r--r--ext/gd/gdttf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/gd/gdttf.c b/ext/gd/gdttf.c
index c7aa98f9ca..4ff659cada 100644
--- a/ext/gd/gdttf.c
+++ b/ext/gd/gdttf.c
@@ -744,9 +744,12 @@ gdttfchar(gdImage *im, int fg, font_t *font,
if (tweencolorkey.pixel > 0) {
x3 = x2 + col;
if (x3 >= im->sx || x3 < 0) continue;
+#if HAVE_LIBGD20
if (im->trueColor) {
pixel = &im->tpixels[y3][x3];
- } else {
+ } else
+#endif
+ {
#if HAVE_LIBGD13
pixel = &im->pixels[y3][x3];
#else