Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: Is there some way to find out what a BadMatch is about? Message-ID: <9106252143.AA00641@lightning.McRCIM.McGill.EDU> Date: 25 Jun 91 21:43:09 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 29 > Apparently GC's have depth as an invisible attribute. You can't > query it, you can't change it, it's only documented in the protocol > spec, but if it doesn't match your program aborts. The Xlib manual states: GC XCreateGC(display, d, valuemask, values) Display *display; Drawable d; unsigned long valuemask; XGCValues *values; display Specifies the connection to the X server. d Specifies the drawable. [descriptions of valuemask and values deleted] The XCreateGC function creates a graphics context and returns a GC. The GC can be used with any destination drawable having the same root and depth as the specified drawable. Use with other drawables results in a BadMatch error. Is that explicit enough for you? der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu