- p = XCreatePixmap(pBumps->pDisplay, pBumps->Win,
- pXWinAttribs->width, pXWinAttribs->height,
- pXWinAttribs->depth);
- load_random_image (pXWinAttribs->screen, pBumps->Win, p);
-
- pScreenImage = XGetImage( pBumps->pDisplay, p, 0, 0, pBumps->iWinWidth, pBumps->iWinHeight, ~0L, ZPixmap );
- XFreePixmap (pBumps->pDisplay, p);
-
- /* jwz: get the grabbed bits off the screen fast */
- XClearWindow (pBumps->pDisplay, pBumps->Win);
- XSync (pBumps->pDisplay, 0);
+ XSetWindowBackground( pBumps->dpy, pBumps->Win, pBumps->aColors[ 0 ] );
+ XClearWindow (pBumps->dpy, pBumps->Win);
+ XSync (pBumps->dpy, 0);