From 4b02e800a385f458755e6f697e63feddb98d71ee Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 12 Oct 2014 19:19:26 +0000 Subject: minor changes --- Sgraph.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Sgraph.c b/Sgraph.c index 3bf6ae5..022cb22 100644 --- a/Sgraph.c +++ b/Sgraph.c @@ -199,18 +199,15 @@ Redisplay(Widget w, XEvent *event, Region r) Dimension i, x, y, visible; XdbeSwapInfo swap; - //Trace(w); - - if (!XtIsRealized(w)) + if (!XtIsRealized(w)) { + Trace(w); return; + } visible = sw->sgraph.size / 2; for (i = 0; i < visible - 1; i++) { y = sw->sgraph.values[i]; - if (sw->sgraph.mirror) - x = sw->core.width - i; - else - x = i; + x = sw->sgraph.mirror ? sw->core.width - i : i; XDrawLine(XtDisplay(sw), sw->sgraph.backBuf, sw->sgraph.foreGC, -- cgit v1.2.3