X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fxrayswarm.c;h=f3b8184800ee07973e504d548b565e148eb867d0;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=f6f5a6e98e8a458646053013d4d8e4327c01069e;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/xrayswarm.c b/hacks/xrayswarm.c index f6f5a6e9..f3b81848 100644 --- a/hacks/xrayswarm.c +++ b/hacks/xrayswarm.c @@ -61,7 +61,8 @@ from the X Consortium. static const char *xrayswarm_defaults [] ={ ".background: black", - "*delay: 0", + "*delay: 20000", + "*fpsSolid: true", 0 }; @@ -481,8 +482,8 @@ static void computeColorIndices(struct state *st) if (st->graySIndex[st->trailLen-1-i] > 19) st->graySIndex[st->trailLen-1-i] = 19; } - schizoLength = st->trailLen/4; - if (schizoLength < 3) schizoLength = 3; + /*schizoLength = st->trailLen/4; + if (schizoLength < 3) schizoLength = 3;*/ /* red schizo */ for (i = 0; i < st->trailLen; i++) { /* redSIndex[trailLen-1-i] = @@ -1195,6 +1196,12 @@ static void xrayswarm_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { + struct state *st = (struct state *) closure; + st->xsize = w; + st->ysize = h; + st->xc = st->xsize >> 1; + st->yc = st->ysize >> 1; + st->maxy = st->ysize/(float)st->xsize; } static Bool