cvs: php-src(PHP_5_2) /ext/gd/libgd gd.c /ext/gd/tests 38179.phpt
| From: | Pierre-Alain Joye | Date: | Sun, 23 Jul 2006 21:41:12 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/gd/libgd gd.c /ext/gd/tests 38179.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39475@lists.php.net to get a copy of this message | ||
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