cvs: php4 /ext/gd/libgd gd_png.c
| From: | Ilia Alshanetsky | Date: | Wed, 05 Mar 2003 15:57:28 +0000 |
| Subject: | cvs: php4 /ext/gd/libgd gd_png.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19385@lists.php.net to get a copy of this message | ||
iliaa Wed Mar 5 10:57:28 2003 EDT
Modified files:
/php4/ext/gd/libgd gd_png.c
Log:
Fixed bug #22544 (missing fix from official gd).
Index: php4/ext/gd/libgd/gd_png.c
diff -u php4/ext/gd/libgd/gd_png.c:1.9 php4/ext/gd/libgd/gd_png.c:1.10
--- php4/ext/gd/libgd/gd_png.c:1.9 Tue Dec 3 10:43:17 2002
+++ php4/ext/gd/libgd/gd_png.c Wed Mar 5 10:57:28 2003
@@ -561,9 +561,10 @@
}
if (im->trueColor && (!im->saveAlphaFlag) && (transparent >= 0))
{
- trans_rgb_value.red = gdTrueColorGetRed (im->trueColor);
- trans_rgb_value.green = gdTrueColorGetGreen (im->trueColor);
- trans_rgb_value.blue = gdTrueColorGetBlue (im->trueColor);
+ /* 2.0.9: fixed by Thomas Winzig */
+ trans_rgb_value.red = gdTrueColorGetRed (im->transparent);
+ trans_rgb_value.green = gdTrueColorGetGreen (im->transparent);
+ trans_rgb_value.blue = gdTrueColorGetBlue (im->transparent);
png_set_tRNS (png_ptr, info_ptr, 0, 0, &trans_rgb_value);
}
if (!im->trueColor)