Commits

Anonymous committed 9f07c10

- #32, Pattern-fill works incorrectly if tile is created
via gdImageCreateTruecolor (Ethan Merritt)

Comments (0)

Files changed (1)

   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
     {