aboutsummaryrefslogtreecommitdiff
path: root/Sgraph.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-14 23:58:44 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-14 23:58:44 +0000
commita02ae8d65ea7f18b9052ee0c8580de9d110b3065 (patch)
treeabd4c21c54c7e942317029871ad1426187acb09a /Sgraph.c
parent43ee45790a18bad360384b27ba91eaa73dfa76d6 (diff)
add redisplay func
Diffstat (limited to 'Sgraph.c')
-rw-r--r--Sgraph.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Sgraph.c b/Sgraph.c
index 427f376..3c26fef 100644
--- a/Sgraph.c
+++ b/Sgraph.c
@@ -201,12 +201,15 @@ Redisplay(Widget w, XEvent *event, Region r)
//warnx("Redisplay");
+ /*
XFillRectangle(XtDisplay(sw), XtWindow(sw), sw->sgraph.backGC,
BORDER, BORDER,
width - 2 * BORDER, height - 2 * BORDER);
XFillRectangle(XtDisplay(sw), XtWindow(sw), sw->sgraph.backGC,
width + BORDER, BORDER,
width - 2 * BORDER, height - 2 * BORDER);
+ */
+ XClearWindow(XtDisplay(sw), XtWindow(sw));
n = (n + 1) % width;
XCopyArea(XtDisplay(sw), sw->sgraph.bg, XtWindow(sw), sw->sgraph.foreGC,
0, 0, width, height / 4, BORDER + n, BORDER);