Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: Is there some way to find out what a BadMatch is about? Message-ID: <1991Jun24.092426@wsl.dec.com> Date: 24 Jun 91 16:24:26 GMT References: <25584@well.sf.ca.us> Sender: news@pa.dec.com (News) Reply-To: klee@wsl.dec.com Organization: DEC Western Software Laboratory Lines: 24 In article <25584@well.sf.ca.us>, jef@well.sf.ca.us (Jef Poskanzer) writes: |> I've got this program which works fine on monochrome screens, but |> when I try running it on a PseudoColor screen I get BadMatch errors |> from innocuous calls like XDrawPoint and XFillRectangle. So I was |> just wondering if anyone has any tricks for finding out what the |> server thinks doesn't match. I suppose I could run the server in |> a debugger, but that's a hassle. |> |> More details: I'm drawing to an off-screen Pixmap created with |> XCreatePixmapFromBitmapData( display, root, data, width, height, 1L, 0L, 1 ). |> The GC's I use have foreground and background set to 1L and 0L, and |> planemask set to 1L. Sounds like you've got depth mis-match problems. Are you GCs created with the same depth as the target drawable? See "Error 14" in the paper "Behind Curtain X" in this month's *UNIX Review* magazine :-) -- Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee