pajoye Sun Jul 23 21:41:12 2006 UTC Added files: (Branch: PHP_5_2) /php-src/ext/gd/tests 38179.phpt
Modified files: /php-src/ext/gd/libgd gd.c Log: - #38179, imagecopy, palette to truecolor must use alpha channel too http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.c?r1=1.90.2.1&r2=1.90.2.1.2.1&diff_format=u Index: php-src/ext/gd/libgd/gd.c diff -u php-src/ext/gd/libgd/gd.c:1.90.2.1 php-src/ext/gd/libgd/gd.c:1.90.2.1.2.1 --- php-src/ext/gd/libgd/gd.c:1.90.2.1 Fri Sep 30 20:48:05 2005 +++ php-src/ext/gd/libgd/gd.c Sun Jul 23 21:41:11 2006 @@ -2161,7 +2161,7 @@ for (x = 0; (x < w); x++) { int c = gdImageGetPixel (src, srcX + x, srcY + y); if (c != src->transparent) { - gdImageSetPixel (dst, dstX + x, dstY + y, gdTrueColor(src->red[c], src->green[c], src->blue[c])); + gdImageSetPixel(dst, dstX + x, dstY + y, gdTrueColorAlpha(src->red[c], src->green[c], src->blue[c], src->alpha[c])); } } } http://cvs.php.net/viewvc.cgi/php-src/ext/gd/tests/38179.phpt?view=markup&rev=1.1 Index: php-src/ext/gd/tests/38179.phpt +++ php-src/ext/gd/tests/38179.phpt -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php