[comp.windows.x] Problems with CopyPlane

aperez@cvbnet.UUCP (Arturo Perez x6739) (11/21/89)

I'm trying to update xchess to X11R3 (G*D knows why I bother with R4 just
around the corner) but I'm having problems getting the pieces to come out
correctly on the black squares.

What I want to know is whether there are any known bugs with UNPATCHED
Release 3 dealing with XCopyPlane.  The scenario of chess piece drawing 
goes like this:
	
	IF BW screen and square is not white

		XSetState fg=black bg=white func=GXcopy AllPlanes
		XCopyPlane shading onto square
		
		XSetFunction GXandInverted
		XCopyPlane piece mask onto square

		Free pixmaps for shading and mask

		XSetFunction GXor
		XCopyPlane piece bitmap onto square

Now, what happens is the XCopyPlane of the piece mask comes out a looking odd
but not blatantly wrong, while the XCopyPlane of the piece bitmap comes out
50% correct and 50% of garbage from previously drawn squares.

Are there bugs with X11R3 CopyPlane?

Arturo Perez						aperez@cvbnet.prime.com
ComputerVision, a Prime Business Unit			(617) 275-1800 x6739
"Too much information, like a bullet through my brain!" - The Police