Allow compilation with gdlib 1.8

This commit is contained in:
Edin Kadribasic 2004-04-07 22:27:32 +00:00
parent d956e33ed2
commit 31de856abb

View File

@ -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++) {