Path: utzoo!attcan!uunet!samsung!think!mintaka!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: XClearArea for Pixmaps? Message-ID: <9001131555.AA08516@expire.lcs.mit.edu> Date: 13 Jan 90 15:55:57 GMT References: <9001130057.AA27807@leo.MIT.EDU> Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 14 I can't use XClearArea, because that only works for windows, not pixmaps. This wouldn't do precisely what you ask anyway, since it would use the background of the window, not whatever pixel value you had as background in the GC. My advice would be to take the expedient approach and cheat, knowing that the R4 interface (XGetGCValues) will solve your problem. Simply extract gc->values.background and use it to set the foreground, and then use XFillRectangle. Put an XXX comment in your code, so you'll remember to fix it when Athena gets R4 installed on campus.