cvs: gd /libgd ISSUES gd.c
[email protected] ("Pierre-Alain Joye")
| Newsgroups | php.gd.cvs |
|---|---|
| Message-ID | <cvspajoye1167856490@cvsserver> |
pajoye Wed Jan 3 20:34:50 2007 UTC
Modified files:
/gd/libgd gd.c ISSUES
Log:
#22, Fixed transparency preservation in gdImageCopyRotated
http://cvs.php.net/viewvc.cgi/gd/libgd/gd.c?r1=1.41&r2=1.42&diff_format=u
Index: gd/libgd/gd.c
diff -u gd/libgd/gd.c:1.41 gd/libgd/gd.c:1.42
--- gd/libgd/gd.c:1.41 Wed Jan 3 20:31:29 2007
+++ gd/libgd/gd.c Wed Jan 3 20:34:50 2007
@@ -1,4 +1,4 @@
-/* $Id: gd.c,v 1.41 2007/01/03 20:31:29 pajoye Exp $ */
+/* $Id: gd.c,v 1.42 2007/01/03 20:34:50 pajoye Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -2425,6 +2425,17 @@
double scY = srcY + ((double) srcHeight) / 2;
int cmap[gdMaxColors];
int i;
+
+ /*
+ 2.0.34: transparency preservation. The transparentness of
+ the transparent color is more important than its hue.
+ */
+ if (src->transparent != -1) {
+ if (dst->transparent == -1) {
+ dst->transparent = src->transparent;
+ }
+ }
+
for (i = 0; (i < gdMaxColors); i++)
{
cmap[i] = (-1);
http://cvs.php.net/viewvc.cgi/gd/libgd/ISSUES?r1=1.20&r2=1.21&diff_format=u
Index: gd/libgd/ISSUES
diff -u gd/libgd/ISSUES:1.20 gd/libgd/ISSUES:1.21
--- gd/libgd/ISSUES:1.20 Wed Jan 3 20:31:29 2007
+++ gd/libgd/ISSUES Wed Jan 3 20:34:50 2007
@@ -43,3 +43,4 @@
#19, Use abs instead of fbas in HWB_Diff (Nick Atty)
#20, Fixed gdImageCopyMergeGray when used with a true color image
#21, gdImageCopyResized sanity check for allocation failures
+#22, Fixed transparency preservation in gdImageCopyRotated