[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-user: ps.c alignment lines multiplies by zero?
Can anyone offer me some insight to why this code
is doing a multiplication by zero? Was thick originally
meant be be something that could be passed in
to control the thickness of the alignment lines?
Note the thick*2:
static void
corner (int x, int y, int dx, int dy)
{
#if 0
int len = (PCB->MaxWidth + PCB->MaxHeight) / 10;
int len2 = (PCB->MaxWidth + PCB->MaxHeight) / 50;
#else
int len = 200000;
int len2 = 20000;
#endif
int thick = 0;
fprintf (f, "gsave %d setlinewidth %d %d translate %d %d scale\n",
thick * 2, x, y, dx, dy);
fprintf (f, "%d %d moveto %d %d %d 0 90 arc %d %d lineto\n",
len, thick, thick, thick, len2 + thick, thick, len);
if (dx < 0 && dy < 0)
fprintf (f, "%d %d moveto 0 %d rlineto\n",
len2 * 2 + thick, thick, -len2);
fprintf (f, "stroke grestore\n");
}
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user