[comp.windows.x] How to overlap pixmaps

jgraham@crc.skl.dnd.ca (Jay Graham) (03/17/91)

Could anyone give some hints on how to display overlapping pixmaps
(depth 8), with colour, such that the foreground colours from the two
pixmaps do not combine to get a different colour.  Currently I can overlap
two pixmaps (displaying, removing, displaying, removing, ...) using
XCopyArea with All_Planes and GXxor and that works great except that the
where the foreground colours overlap the colours combine to show a different
colour.  I would like the last pixmap displayed to be the top colour.

I am sure it can be done because the cursor is implemented so that it's
foreground colour is always on top and you can "see through" the
background colour to view the underlying graphics.

I am using X11 R3 with 386/ix on an AT&T 386.

Thanks in advance.

Jay Graham
Software Kinetics Ltd.,
Ottawa, Ontario, Canada,
jgraham@crc.skl.dnd.ca