Commits

Anonymous committed f097b93

- #81, MFB, gdImageCopy ignores the transparent color

  • Participants
  • Parent commits b4a3a45
  • Branches GD-2.0

Comments (0)

Files changed (1)

 		  for (y = 0; (y < h); y++) {
 			  for (x = 0; (x < w); x++) {
 				  int c = gdImageGetTrueColorPixel (src, srcX + x, srcY + y);
-				  gdImageSetPixel (dst, dstX + x, dstY + y, c);
+					if (c != src->transparent) {
+					  gdImageSetPixel (dst, dstX + x, dstY + y, c);
+					}
 			  }
 		  }
 	  } else {