char *progclass = "ShadeBobs";
char *defaults [] = {
+ ".background: black",
+ ".foreground: white",
"*degrees: 0", /* default: Automatic degree calculation */
"*color: random",
"*count: 4",
if( i++ >= cycles )
{
+ XWindowAttributes XWinAttribs;
+ XGetWindowAttributes( pDisplay, Win, &XWinAttribs );
+
i = 0;
- XClearWindow( pDisplay, Win );
memset( pImage->data, 0, pImage->bytes_per_line * pImage->height );
for( iShadeBob=0; iShadeBob<nShadeBobCount; iShadeBob++ )
ResetShadeBob( &aShadeBobs[ iShadeBob ] );
+ XFreeColors( pDisplay, XWinAttribs.colormap, aiColorVals, iColorCount, 0 );
free( aiColorVals );
aiColorVals = SetPalette( pDisplay, Win, sColor, &iColorCount );
+ XClearWindow( pDisplay, Win );
}
for( iShadeBob=0; iShadeBob<nShadeBobCount; iShadeBob++ )