From 1478e5a8b5a9fca2b6a3de603e4d075578c645b9 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 19 Sep 2014 16:03:17 +0000 Subject: add gap --- Sgraph.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Sgraph.c') diff --git a/Sgraph.c b/Sgraph.c index d9d3d51..6a1971b 100644 --- a/Sgraph.c +++ b/Sgraph.c @@ -240,18 +240,18 @@ Redisplay(Widget w, XEvent *event, Region r) bottom = sw->core.height - 10; - for (x = 0; x < sw->sgraph.size / 2; x++) { + for (x = 0; x < sw->sgraph.size / 2 - 1; x++) { yl = sw->sgraph.leftData[x]; yr = sw->sgraph.rightData[x]; XDrawLine(XtDisplay(sw), sw->sgraph.backBuf, sw->sgraph.foreGC, - width - x, bottom, - width - x, bottom - yl); + width - x - 2, bottom, + width - x - 2, bottom - yl); XDrawLine(XtDisplay(sw), sw->sgraph.backBuf, sw->sgraph.foreGC, - width + x, bottom, - width + x, bottom - yr); + width + x + 1, bottom, + width + x + 1, bottom - yr); } swap.swap_window = XtWindow(sw); -- cgit v1.2.3