X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/dafd6cf6826f9bbd27ddd780fab48221d4706556..854a4f51614eb4a6a23e15204d30d1e57ef83c6f:/ps.c diff --git a/ps.c b/ps.c index a2fd619..a1f21d6 100644 --- a/ps.c +++ b/ps.c @@ -112,7 +112,7 @@ static void ps_draw_text(void *handle, int x, int y, int fonttype, ps_setcolour(ps, colour); ps_printf(ps, "/%s findfont %d scalefont setfont\n", fonttype == FONT_FIXED ? "Courier" : "Helvetica", - fontsize, x, y); + fontsize); if (align & ALIGN_VCENTRE) { ps_printf(ps, "newpath 0 0 moveto (X) true charpath flattenpath" " pathbbox\n" @@ -334,7 +334,7 @@ psdata *ps_init(FILE *outfile, int colour) ps->ytop = 0; ps->clipped = FALSE; ps->hatchthick = ps->hatchspace = ps->gamewidth = ps->gameheight = 0; - ps->drawing = drawing_init(&ps_drawing, ps); + ps->drawing = drawing_new(&ps_drawing, NULL, ps); return ps; }