On Fri, Jan 9, 2009 at 4:17 PM, DJ Delorie <d...@delorie.com> wrote: > > Me likey. However, with alpha checked, pads come out green instead of > grey... http://www.delorie.com/pcb/green-pads.png >
Here's a fix for that... you can't use a transparent brush when painting a black/white mask or suddenly the mask has more than two colors on it: clear/black/white. This affects code that looks at the palette index directly. Only solder mask over pads was showing it for some reason. Does solder mask use the "erase" color? This patch might affect other png output, but I'm not smart enough to anticipate which outputs, and I'm too tired to test them all tonight. Regards, Mark markra...@gmail -- Mark Rages, Engineer Midwest Telecine LLC markra...@midwesttelecine.com
--- png-left.c 2009-01-09 11:23:09.000000000 -0600 +++ png-right.c 2009-01-09 11:23:59.000000000 -0600 @@ -1082,7 +1082,7 @@ bg = gdImageColorAllocate (gc->brush, 255, 255, 255); fg = gdImageColorAllocateAlpha (gc->brush, gc->color->r, gc->color->g, - gc->color->b, gc->color->a); + gc->color->b, 0); gdImageColorTransparent (gc->brush, bg); /*
_______________________________________________ geda-dev mailing list geda-dev@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev
