X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fpiecewise.c;h=af01a99d32aa2f5746c35356be54ef0c82893cec;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=09fc4b621609ae0e2e371759a8c4562500f6b59c;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/piecewise.c b/hacks/piecewise.c index 09fc4b62..af01a99d 100644 --- a/hacks/piecewise.c +++ b/hacks/piecewise.c @@ -358,7 +358,7 @@ static circle *init_circles(struct state *st, int n, int w, int h) dr = floor(maxradius * h) - r0 + 1; for (i=0;i 0) ? random() % dr : 0); c[i].x = c[i].r + frand(w - 1 - 2 * c[i].r); c[i].y = c[i].r + frand(h - 1 - 2 * c[i].r); c[i].visible = random() & 1; @@ -940,6 +940,8 @@ static void piecewise_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { + struct state *st = (struct state *) closure; + XGetWindowAttributes(st->dpy, st->window, &st->xgwa); } static Bool @@ -960,7 +962,7 @@ piecewise_free (Display *dpy, Window window, void *closure) static const char *piecewise_defaults [] = { ".background: black", ".foreground: white", - "*delay: 5000", + "*delay: 10000", "*speed: 15", "*ncolors: 256", ".colorspeed: 10",