From 15d77f49a8d503acdd427eb5f5bb53a5fe5db99c Mon Sep 17 00:00:00 2001 From: John Honniball Date: Tue, 25 Aug 2020 21:51:40 +0100 Subject: [PATCH] Remove last uses of 'openlinesequence()' from the drawing programs. It's still in the library, but marked as deprecated. Is anyone still using it? Does anyone but me write drawing programs to the 'hpgllib' API? --- morphpoly.c | 6 +++--- sutpent.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/morphpoly.c b/morphpoly.c index 05670e8..20b68a0 100644 --- a/morphpoly.c +++ b/morphpoly.c @@ -183,12 +183,12 @@ void drawpoly(const int nsides, const double xc, const double yc, const struct V { int i; - openlinesequence(xc + vertex[0].x, yc + vertex[0].y); + moveto(xc + vertex[0].x, yc + vertex[0].y); for (i = 1; i < nsides; i++) { - linesegmentto(xc + vertex[i].x, yc + vertex[i].y); + lineto(xc + vertex[i].x, yc + vertex[i].y); // circle(xc + vertex[i].x, yc + vertex[i].y, 20.0); } - closelinesequence(1); + lineto(xc + vertex[0].x, yc + vertex[0].y); } diff --git a/sutpent.c b/sutpent.c index abea858..fa3d358 100644 --- a/sutpent.c +++ b/sutpent.c @@ -145,10 +145,10 @@ void drawpoly(const int nsides, const struct Vertex vertex[]) { int i; - openlinesequence(vertex[0].x, vertex[0].y); + moveto(vertex[0].x, vertex[0].y); for (i = 1; i < nsides; i++) - linesegmentto(vertex[i].x, vertex[i].y); + lineto(vertex[i].x, vertex[i].y); - closelinesequence(1); + lineto(vertex[0].x, vertex[0].y); }