aboutsummaryrefslogtreecommitdiff
path: root/Sgraph.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-29 11:21:20 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-29 11:21:20 +0000
commite93a94a49393d8ef4c6fb856a4c0e9640f03c5d3 (patch)
treec06c71235b052037bc53847ff9d4a239f1cae613 /Sgraph.c
parent068539d8dbe1259e9d3fd6d199f8ffabb2e044b3 (diff)
adjust position
Diffstat (limited to 'Sgraph.c')
-rw-r--r--Sgraph.c7
1 files 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);