X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Ftruchet.c;h=f21e559966cce3da67d434947e2533320ec7d2d8;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=e34ef5caf75de8ce40f73f36428caaa13618a99c;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/truchet.c b/hacks/truchet.c index e34ef5ca..f21e5599 100644 --- a/hacks/truchet.c +++ b/hacks/truchet.c @@ -53,7 +53,7 @@ static const char *truchet_defaults [] = { "*erase: True", "*eraseCount: 25", "*square: True", - "*delay: 1000", + "*delay: 400000", "*curves: True", "*angles: True", "*scroll: False", @@ -501,14 +501,17 @@ truchet_draw (Display *dpy, Window window, void *closure) XCopyArea(st->dpy,st->frame,st->window,st->agc,0,0,st->xgwa.width,st->xgwa.height,0,0); - /*printf("%d\n",st->delay);*/ - return st->delay*1000; + return st->delay; } static void truchet_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { + struct state *st = (struct state *) closure; + st->width = w; + st->height = h; + XGetWindowAttributes (st->dpy, st->window, &st->xgwa); } static Bool