X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fgoop.c;h=d2308386d6551101aecb180cbca173740c16c0dc;hb=f0261d8acab611f3433160e4f07367b870439739;hp=b7670e7cf3fbcb7176b20998f52b342eeabf7e63;hpb=07faf451b99879183ed7e909e43a0e065be1ee7f;p=xscreensaver diff --git a/hacks/goop.c b/hacks/goop.c index b7670e7c..d2308386 100644 --- a/hacks/goop.c +++ b/hacks/goop.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1997, 2006 Jamie Zawinski +/* xscreensaver, Copyright (c) 1997-2008 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -47,7 +47,6 @@ #define SCALE 10000 /* fixed-point math, for sub-pixel motion */ #define DEF_COUNT 12 /* When planes and count are 0, how many blobs. */ - #define RAND(n) ((long) ((random() & 0x7fffffff) % ((long) (n)))) #define RANDSIGN() ((random() & 1) ? 1 : -1) @@ -126,7 +125,7 @@ make_blob (Display *dpy, int maxx, int maxy, int size) b->spline = make_spline (b->npoints); b->r = (long *) malloc (sizeof(*b->r) * b->npoints); for (i = 0; i < b->npoints; i++) - b->r[i] = ((random() % mid) + (mid/2)) * RANDSIGN(); + b->r[i] = (long) ((random() % mid) + (mid/2)) * RANDSIGN(); return b; } @@ -566,8 +565,8 @@ static const char *goop_defaults [] = { "*delay: 12000", "*additive: true", "*mode: transparent", - "*count: 0", - "*planes: 0", + "*count: 1", + "*planes: 12", "*thickness: 5", "*torque: 0.0075", "*elasticity: 0.9",