Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!rpi!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!pasteur!graft!scott From: scott@graft.Berkeley.EDU (Scott Silvey) Newsgroups: comp.windows.x Subject: Re: XCopyPlane() bug (sort of). Message-ID: <26039@pasteur.Berkeley.EDU> Date: 10 Jul 90 08:33:25 GMT References: <26023@pasteur.Berkeley.EDU> Sender: news@pasteur.Berkeley.EDU Reply-To: scott@xcf.berkeley.edu Organization: UC Berkeley Experimental Computing Facility Lines: 29 In article <26023@pasteur.Berkeley.EDU>, scott@graft.Berkeley.EDU (Scott Silvey) writes: |> XCopyPlane(display, |> window, /* 8 bits deep */ |> bitmap, /* 1 bit deep */ |> gc, /* GC with function GXor */ |> 0, 0, width, height, 0, 0, /* width, height == 300 */ |> plane_mask); /* only 1 bit set */ |> |> |> XPutImage(display, |> bitmap, /* 1 bit deep */ |> gc, /* GC with function GXor */ |> image, /* image from XGetImage */ |> 0, 0, 0, 0, |> width, height); /* width, height == 300 */ |> Oh, there was a question about the gc. I used the following calls to create the gc: gc = XCreateGC(display, bitmap, NULL, 0); XSetFunction(display, gc, GXor); Thanks, Scott