aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-10-12 19:19:26 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-10-12 19:19:26 +0000
commit4b02e800a385f458755e6f697e63feddb98d71ee (patch)
tree185475b971380708f526b187a2fb7aaf72e9708d
parent5329cc35a8a7510ce5c89b2341c53c154e23b72b (diff)
minor changes
-rw-r--r--Sgraph.c11
1 files 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,