Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!jim
From: jim@EXPO.LCS.MIT.EDU (Jim Fulton)
Newsgroups: comp.windows.x
Subject: Re: Best way to clear a PixMap?
Message-ID: <8806281630.AA07260@EXPO.LCS.MIT.EDU>
Date: 28 Jun 88 16:30:23 GMT
References: <60200002@urbsdc>
Sender: daemon@bloom-beacon.MIT.EDU
Organization: X Consortium, MIT Laboratory for Computer Science
Lines: 10


> What is the best way to clear an X11 bitmap?  The XClearArea
> function only works on windows.

The reason why XClearArea only works on windows is that pixmaps don't have
backgrounds, so the notion of "clearing to background" doesn't exist.  Set the
foreground of a GC to be the pixel value that you want replicated in the pixmap
and do XFillRectangle() with a alu function of GXcopy. 

Jim Fulton
MIT X Consortium