Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!ucbvax!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: XDrawString on a Bitmap Message-ID: <9008140157.AA08071@Larry.McRCIM.McGill.EDU> Date: 14 Aug 90 01:57:41 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 15 > bm = XCreateBitmapFromData(TheDisplay, XtWindow(PageBox), > image, WID*8, HT); > XDrawString(TheDisplay, bm, DefaltGC, 10, 10, "SomeText", 8); > X Protocol error: BadMatch, invalid parameter attributes > Major opcode of failed request: 74 (X_PolyText8) If (as the name implies) Defa[u]ltGC is the default GC of the screen, it's quite possible that its depth does not match bm's depth. Try creating a GC explicitly with XCreateGC to match bm.... der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu