edink Wed Apr 7 18:28:29 2004 EDT Modified files: (Branch: PHP_4_3) /php-src/ext/gd gd.c Log: MFH: Allow compilation with gdlib 1.8 http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.221.2.38&r2=1.221.2.39&ty=u Index: php-src/ext/gd/gd.c diff -u php-src/ext/gd/gd.c:1.221.2.38 php-src/ext/gd/gd.c:1.221.2.39 --- php-src/ext/gd/gd.c:1.221.2.38 Sun Apr 4 14:00:23 2004 +++ php-src/ext/gd/gd.c Wed Apr 7 18:28:29 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.221.2.38 2004/04/04 18:00:23 iliaa Exp $ */ +/* $Id: gd.c,v 1.221.2.39 2004/04/07 22:28:29 edink Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -3639,9 +3639,11 @@ return; } +#ifdef 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++) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php