summaryrefslogtreecommitdiff
path: root/ext/gd
diff options
context:
space:
mode:
authorEdin Kadribasic <edink@php.net>2004-04-07 22:27:32 +0000
committerEdin Kadribasic <edink@php.net>2004-04-07 22:27:32 +0000
commit31de856abb29ce31ce0bf90c59303a9dda31498d (patch)
treec8bf6efe454f38a5fe4b1453c2a85bac1cf360ac /ext/gd
parentd956e33ed29af3f950efa400011ccbee36ba62ff (diff)
downloadphp-git-31de856abb29ce31ce0bf90c59303a9dda31498d.tar.gz
Allow compilation with gdlib 1.8
Diffstat (limited to 'ext/gd')
-rw-r--r--ext/gd/gd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index ad2db04a3c..ae835a8db7 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -3755,9 +3755,11 @@ static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold
return;
}
+#if HAVE_LIBGD20
if (im_org->trueColor) {
gdImageTrueColorToPalette(im_org, 1, 256);
}
+#endif
for (y = 0; y < dest_height; y++) {
for (x = 0; x < dest_width; x++) {