From a02ae8d65ea7f18b9052ee0c8580de9d110b3065 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 14 Sep 2014 23:58:44 +0000 Subject: add redisplay func --- Sgraph.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Sgraph.c') 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); -- cgit v1.2.3