cvs: gd /libgd gd.c
| From: | Pierre-Alain Joye | Date: | Mon, 29 Jan 2007 21:56:37 +0000 |
| Subject: | cvs: gd /libgd gd.c | ||
| Groups: | php.gd.cvs | ||
| Request: | Send a blank email to php-gd-cvs+get-101@lists.php.net to get a copy of this message | ||
pajoye Mon Jan 29 21:56:37 2007 UTC
Modified files:
/gd/libgd gd.c
Log:
- #32, Pattern-fill works incorrectly if tile is created
via gdImageCreateTruecolor (Ethan Merritt)
http://cvs.php.net/viewvc.cgi/gd/libgd/gd.c?r1=1.48&r2=1.49&diff_format=u
Index: gd/libgd/gd.c
diff -u gd/libgd/gd.c:1.48 gd/libgd/gd.c:1.49
--- gd/libgd/gd.c:1.48 Sat Jan 20 02:09:37 2007
+++ gd/libgd/gd.c Mon Jan 29 21:56:37 2007
@@ -1,4 +1,4 @@
-/* $Id: gd.c,v 1.48 2007/01/20 02:09:37 pajoye Exp $ */
+/* $Id: gd.c,v 1.49 2007/01/29 21:56:37 pajoye Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -926,7 +926,9 @@
if (im->trueColor)
{
p = gdImageGetTrueColorPixel (im->tile, srcx, srcy);
- gdImageSetPixel (im, x, y, p);
+ if (p != gdImageGetTransparent (im->tile)) {
+ gdImageSetPixel (im, x, y, p);
+ }
}
else
{