mirror of
https://github.com/php/php-src.git
synced 2025-01-26 21:54:16 +08:00
Allow compilation with gdlib 1.8
This commit is contained in:
parent
d956e33ed2
commit
31de856abb
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user