Skip to content

Commit

Permalink
Remove last uses of 'openlinesequence()' from the drawing programs. I…
Browse files Browse the repository at this point in the history
…t'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?
  • Loading branch information
anachrocomputer committed Aug 25, 2020
1 parent 079fe88 commit 15d77f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions morphpoly.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
6 changes: 3 additions & 3 deletions sutpent.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 15d77f4

Please sign in to comment.