From d9e3e30c624c99b9b3c8e5232ffac21b29de9679 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 6 Oct 2017 23:18:05 +0200 Subject: [PATCH] =?UTF-8?q?add=20missing=20=C3=BCarameter=20to=20DevDrawLi?= =?UTF-8?q?ne=20for=20X11=20and=20HPGL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/hpgl.c | 4 +++- src/frontend/plotting/x11.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontend/hpgl.c b/src/frontend/hpgl.c index 806dd97cb..9b700b1ff 100644 --- a/src/frontend/hpgl.c +++ b/src/frontend/hpgl.c @@ -201,8 +201,10 @@ int GL_Clear(void) } -int GL_DrawLine(int x1, int y1, int x2, int y2) +int +GL_DrawLine(int x1, int y1, int x2, int y2, bool isgrid) { + NG_IGNORE(isgrid); /* note: this is not extendible to more than one graph => will have to give NewViewport a writeable graph XXX */ diff --git a/src/frontend/plotting/x11.c b/src/frontend/plotting/x11.c index 0c63b62fb..319e9dda3 100644 --- a/src/frontend/plotting/x11.c +++ b/src/frontend/plotting/x11.c @@ -1194,7 +1194,7 @@ linear_arc(int x0, int y0, int radius, double theta, double delta_theta) y1 = y2; x2 = x0 + (int)(radius * cos(theta + i*dphi)); y2 = y0 + (int)(radius * sin(theta + i*dphi)); - X11_DrawLine(x1, y1, x2, y2); + X11_DrawLine(x1, y1, x2, y2, FALSE); } }