aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-18 13:56:31 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-18 13:56:31 +0000
commit3693e4f688cecda2ca58aacb6c11c14ca41cae3c (patch)
tree96d6bfa12f736e84650733fe97771d7a34261d61
parente6b075339e5851f1684add48f74fcd772fa67bb8 (diff)
fix left/right
-rw-r--r--Sgraph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Sgraph.c b/Sgraph.c
index a5a4c99..fc5822e 100644
--- a/Sgraph.c
+++ b/Sgraph.c
@@ -240,8 +240,8 @@ Redisplay(Widget w, XEvent *event, Region r)
for (x = 0; x < sw->sgraph.size; x++) {
yl = sw->sgraph.leftData[x] / (2 * height) + height / 2;
- yr = sw->sgraph.leftData[x] / (2 * height) + height / 2
- + height;
+ yr = sw->sgraph.rightData[x] / (2 * height) + height / 2;
+ yr += height;
XDrawPoint(XtDisplay(sw), sw->sgraph.backBuf,
sw->sgraph.foreGC, x, yl);
XDrawPoint(XtDisplay(sw), sw->sgraph.backBuf,