-/* xscreensaver, Copyright (c) 1997, 2006 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1997-2008 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
blob_max = (width < height ? width : height) / 2;
blob_min = (blob_max * 2) / 3;
- for (i = 0; i < layer->nblobs; i++)
+ for (i = 0; i < layer->nblobs; i++){
+ int j = blob_max - blob_min;
layer->blobs[i] = make_blob (dpy, width, height,
- (random() % (blob_max-blob_min)) + blob_min);
+ (j ? random() % j : 0) + blob_min);
+ }
layer->pixmap = XCreatePixmap (dpy, window, width, height, 1);
layer->gc = XCreateGC (dpy, layer->pixmap, 0, &gcv);
"*delay: 12000",
"*additive: true",
"*mode: transparent",
- "*count: 0",
- "*planes: 0",
+ "*count: 1",
+ "*planes: 12",
"*thickness: 5",
"*torque: 0.0075",
"*elasticity: 0.9",