short xpos,ypos;
} BLOB;
-static unsigned char nBlobCount;
+static unsigned int nBlobCount;
static unsigned char radius;
static unsigned char delta;
static unsigned char dradius;
static BLOB *blobs;
static unsigned char **blub;
+#undef BELLRAND
+#define BELLRAND(n) ((frand((n)) + frand((n)) + frand((n))) / 3)
+
static void init_blob(BLOB *blob)
{
- blob->xpos = (iWinWidth>> 1) - radius;
- blob->ypos = (iWinHeight >> 1) - radius;
+ blob->xpos = iWinWidth/4 + BELLRAND(iWinWidth/2) - radius;
+ blob->ypos = iWinHeight/4 + BELLRAND(iWinHeight/2) - radius;
}
static void Execute( Display *pDisplay,
/* Find the preferred bits-per-pixel. (jwz) */
{
- int i, pfvc = 0;
+ int pfvc = 0;
XPixmapFormatValues *pfv = XListPixmapFormats( pDisplay, &pfvc );
for( i=0; i<pfvc; i++ )
if( pfv[ i ].depth == XWinAttribs.depth )