Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!bloom-beacon!BOULDER.COLORADO.EDU!jorgy From: jorgy@BOULDER.COLORADO.EDU Newsgroups: comp.windows.x Subject: Bitmaps and GXor Message-ID: <9011202300.AA01414@refuge.colorado.edu> Date: 20 Nov 90 23:00:38 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 63 I have a couple of bitmaps that I would like to draw on the screen using GXor. Both mono and 8 plane color monitors are available to me, and I would like to be able to use both, though I realize that the code must be modified slightly for each case. I assume it would be something like: if (DisplayPlanes(dpy,DefaultScreen(dpy)) == 1) then set up gc for mono else set up gc for color endif Let's say that the bitmap is something like: X X X X X X X X X X X X X X X X And we draw two of them that overlap: X X X X X X X X X X X X XX X X X X XX X X X X X X X X X X X X The problem is getting the gc's set right so that the overlap works right. Anyone have any experience with this? Thanks in advance, jorgy Eric R. Jorgensen internet: jorgy@boulder.colorado.edu University of Colorado, Boulder uucp: ...!{ncar|nbires}!boulder!jorgy Unixops/Distributed Computing Services bitnet: jorgy@colorado.BITNET