rasmus Sun Oct 6 13:50:26 2002 EDT Modified files: (Branch: PHP_4_3) /php4/ext/gd/libgd gd_topal.c Log: MFH fixes 19704 and 19781 Index: php4/ext/gd/libgd/gd_topal.c diff -u php4/ext/gd/libgd/gd_topal.c:1.5 php4/ext/gd/libgd/gd_topal.c:1.5.4.1 --- php4/ext/gd/libgd/gd_topal.c:1.5 Thu Aug 22 12:21:32 2002 +++ php4/ext/gd/libgd/gd_topal.c Sun Oct 6 13:50:25 2002 @@ -1558,8 +1558,9 @@ /* Do the work! */ zeroHistogram (cquantize->histogram); prescan_quantize (im, cquantize); - select_colors (im, cquantize, 256); + select_colors (im, cquantize, colorsWanted); /* TBB HACK REMOVE */ +#if 0 { FILE *out = fopen ("palettemap.png", "wb"); int i; @@ -1575,6 +1576,7 @@ fclose (out); gdImageDestroy (im2); } +#endif zeroHistogram (cquantize->histogram); if (dither) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php