X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fshadebobs.c;h=d0942bcf4395b1b0e845cbc621a8d664197a6b32;hb=3f9592851ce4ed76a9979bfdd6ec7dc5c457e183;hp=670d667750f6abd2e445212f7dc1634913edc2bd;hpb=93f25dc6827112d98b8b855ea85c8f5eb8123086;p=xscreensaver diff --git a/hacks/shadebobs.c b/hacks/shadebobs.c index 670d6677..d0942bcf 100644 --- a/hacks/shadebobs.c +++ b/hacks/shadebobs.c @@ -45,6 +45,8 @@ char *progclass = "ShadeBobs"; char *defaults [] = { + ".background: black", + ".foreground: white", "*degrees: 0", /* default: Automatic degree calculation */ "*color: random", "*count: 4", @@ -384,13 +386,17 @@ void screenhack(Display *pDisplay, Window Win ) 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