aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-19 16:03:17 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-19 16:03:17 +0000
commit1478e5a8b5a9fca2b6a3de603e4d075578c645b9 (patch)
tree43abc6cb38485dd9003bd9e8164bcb318327a222
parent9029d3774030f1bf1011fc91e1a99cb1f4dcb93c (diff)
add gap
-rw-r--r--Sgraph.c10
1 files changed, 5 insertions, 5 deletions
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);