From e93a94a49393d8ef4c6fb856a4c0e9640f03c5d3 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 29 Sep 2014 11:21:20 +0000 Subject: adjust position --- Sgraph.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Sgraph.c b/Sgraph.c index fa0ed03..d61ce8f 100644 --- a/Sgraph.c +++ b/Sgraph.c @@ -209,21 +209,18 @@ Redisplay(Widget w, XEvent *event, Region r) { SgraphWidget sw = (SgraphWidget)w; Dimension x, y; - Dimension bottom; XdbeSwapInfo swap; if (!XtIsRealized(w)) return; - bottom = sw->core.height - 1; - for (x = 0; x < sw->sgraph.size - 1; x++) { y = sw->sgraph.data[x]; XDrawLine(XtDisplay(sw), sw->sgraph.backBuf, sw->sgraph.foreGC, - x, bottom, - x, bottom - y); + x, sw->core.height, + x, sw->core.height - y); } swap.swap_window = XtWindow(sw); -- cgit v1.2.3