diff options
author | Edin Kadribasic <edink@php.net> | 2004-04-07 22:27:32 +0000 |
---|---|---|
committer | Edin Kadribasic <edink@php.net> | 2004-04-07 22:27:32 +0000 |
commit | 31de856abb29ce31ce0bf90c59303a9dda31498d (patch) | |
tree | c8bf6efe454f38a5fe4b1453c2a85bac1cf360ac /ext/gd | |
parent | d956e33ed29af3f950efa400011ccbee36ba62ff (diff) | |
download | php-git-31de856abb29ce31ce0bf90c59303a9dda31498d.tar.gz |
Allow compilation with gdlib 1.8
Diffstat (limited to 'ext/gd')
-rw-r--r-- | ext/gd/gd.c | 2 |
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++) { |