Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!tut.cis.ohio-state.edu!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: mouse@larry.mcrcim.mcgill.EDU Newsgroups: comp.windows.x Subject: Re: XPutImage problem Message-ID: <9101210609.AA10386@Larry.McRCIM.McGill.EDU> Date: 21 Jan 91 06:09:29 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 20 > This piece of code generates a BadMatch. What am I doing wrong? Insufficient information to say with any certainty, but I have a guess. > map = XCreatePixmap(....,1); .... > XPutImage(_display,map,_gc,txi,0,0,0,0,defaultwidth,defaultheight); You say nothing about where you get _gc from. I suspect it may be the default GC of the screen, or perhaps a GC created early on for general use. In any case, I suspect its depth is that of the screen, and you're on a display whose default screen is not one bit deep. Thus, the GC is incompatible with the drawable, and you get a BadMatch. If this isn't it, I would need more information. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu