aboutsummaryrefslogtreecommitdiff
path: root/Sgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'Sgraph.c')
-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,