On Sat, Jan 10, 2009 at 4:00 PM, DJ Delorie <d...@delorie.com> wrote: > >> > Could you make the patch relative to what I just checked in? >> >> OK, try this one. > > Nothing attached. >
Oops. Someday gmail will scan outgoing messages for references to an attachment, and throw a warning if you send it with nothing attached... Regards, Mark markra...@gmail -- Mark Rages, Engineer Midwest Telecine LLC markra...@midwesttelecine.com
--- png.c 2009-01-10 15:56:47.000000000 -0600 +++ png_visible.c 2009-01-10 15:08:19.000000000 -0600 @@ -1,4 +1,4 @@ -/* $Id: png.c,v 1.31 2009/01/10 21:44:35 djdelorie Exp $ */ +/* $Id: png.c,v 1.30 2008/12/27 16:30:04 djdelorie Exp $ */ /*Sept 2007: patch to enable slanted squared lines*/ /* * COPYRIGHT @@ -51,7 +51,7 @@ #include <dmalloc.h> #endif -RCSID ("$Id: png.c,v 1.31 2009/01/10 21:44:35 djdelorie Exp $"); +RCSID ("$Id: png.c,v 1.30 2008/12/27 16:30:04 djdelorie Exp $"); #define CRASH fprintf(stderr, "HID error: pcb called unimplemented PNG function %s.\n", __FUNCTION__); abort() @@ -289,7 +289,7 @@ region.Y2 = PCB->MaxHeight; if (options[HA_only_visible].int_value) - bounds = GetDataBoundingBox (PCB->Data); + bounds = GetDataBoundingBox (PCB->Data); else bounds = ®ion; @@ -475,7 +475,6 @@ photo_mode = 1; options[HA_mono].int_value = 1; options[HA_as_shown].int_value = 0; - options[HA_only_visible].int_value = 0; memset (photo_copper, 0, sizeof(photo_copper)); photo_silk = photo_mask = photo_drill = 0; photo_outline = 0; @@ -641,9 +640,21 @@ ts_bs (photo_silk); ts_bs_sm (photo_mask); - if (photo_outline) - gdImageFill(photo_outline, 0, 0, - gdImageColorResolve(photo_outline, 0x00, 0x00, 0x00)); + if (photo_outline) { + int black=gdImageColorResolve(photo_outline, 0x00, 0x00, 0x00); + + // go all the way around the image, trying to fill the outline + for (x=0; x<gdImageSX(im); x++) { + gdImageFillToBorder(photo_outline, x, 0, black, black); + gdImageFillToBorder(photo_outline, x, gdImageSY(im)-1, black, black); + } + for (y=1; y<gdImageSY(im)-1; y++) { + gdImageFillToBorder(photo_outline, 0, y, black, black); + gdImageFillToBorder(photo_outline, gdImageSX(im)-1, y, black, black); + + } + } + for (x=0; x<gdImageSX (im); x++) {
_______________________________________________ geda-dev mailing list geda-dev@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev