cvs: php-src(PHP_5_2) /ext/gd/libgd gd.c /ext/gd/tests bug39273.phpt
| From: | Pierre-Alain Joye | Date: | Sat, 04 Nov 2006 02:21:06 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/gd/libgd gd.c /ext/gd/tests bug39273.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-41341@lists.php.net to get a copy of this message | ||
pajoye Sat Nov 4 02:21:06 2006 UTC
Added files: (Branch: PHP_5_2)
/php-src/ext/gd/tests bug39273.phpt
Modified files:
/php-src/ext/gd/libgd gd.c
Log:
- #39273, imagecopyresized and alpha channel
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.c?r1=1.90.2.1.2.2&r2=1.90.2.1.2.3&diff_format=u
Index: php-src/ext/gd/libgd/gd.c
diff -u php-src/ext/gd/libgd/gd.c:1.90.2.1.2.2 php-src/ext/gd/libgd/gd.c:1.90.2.1.2.3
--- php-src/ext/gd/libgd/gd.c:1.90.2.1.2.2 Thu Sep 28 08:48:02 2006
+++ php-src/ext/gd/libgd/gd.c Sat Nov 4 02:21:06 2006
@@ -754,7 +754,7 @@
int p = gdImageGetPixel(im, x, y);
if (!im->trueColor) {
- return gdTrueColorAlpha(im->red[p], im->green[p], im->blue[p], (im->transparent == p)
? gdAlphaTransparent : gdAlphaOpaque);
+ return gdTrueColorAlpha(im->red[p], im->green[p], im->blue[p], (im->transparent == p)
? gdAlphaTransparent : im->alpha[p]);
} else {
return p;
}
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/tests/bug39273.phpt?view=markup&rev=1.1
Index: php-src/ext/gd/tests/bug39273.phpt
+++ php-src/ext/gd/tests/bug39273.phpt