76b7f51a5be7d26bc0638b123ad4fd3d61d8406c braney Wed May 29 10:54:02 2019 -0700 postscript output was missing the ability to outline circles. Now it works! diff --git src/lib/psGfx.c src/lib/psGfx.c index ea3c6ce..7201444 100644 --- src/lib/psGfx.c +++ src/lib/psGfx.c @@ -346,41 +346,44 @@ psLineTo(ps, p->x, p->y); if (p == poly->ptList) break; } if (filled) { fprintf(f, "fill\n"); } else { fprintf(f, "closepath\n"); fprintf(f, "stroke\n"); } } -void psFillCircle(struct psGfx *ps, double x, double y, double rad) +void psCircle(struct psGfx *ps, double x, double y, double rad, boolean filled) { FILE *f = ps->f; fprintf(f, "newpath\n"); psXyOut(ps, x, y); psFloatOut(f, rad * ps->xScale); psFloatOut(f, 0.0); psFloatOut(f, 360.0); fprintf(f, "arc\n"); fprintf(f, "closepath\n"); +if (filled) fprintf(f, "fill\n"); +else + fprintf(f, "stroke\n"); } void psFillEllipse(struct psGfx *ps, double x, double y, double xrad, double yrad) { FILE *f = ps->f; fprintf(f, "newpath\n"); psXyOut(ps, x, y); psWhOut(ps, xrad, yrad); psFloatOut(f, 0.0); psFloatOut(f, 360.0); fprintf(f, "ellipse\n"); fprintf(f, "closepath\n"); fprintf(f, "fill\n"); }