Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!cs.utexas.edu!ut-emx!mic From: mic@ut-emx.UUCP (Mic (... K[a-z]+) Kaczmarczik) Newsgroups: comp.windows.x Subject: Re: TeXX and X11r3 protocol error on colour SUNs (/dev/cgfour0) Summary: TeXX doesn't check depth of screen when creating pixmaps Message-ID: <10202@ut-emx.UUCP> Date: 5 Feb 89 03:50:36 GMT References: <574@tivax.turing.ac.uk> Reply-To: mic@emx.utexas.edu (Mic Kaczmarczik) Organization: UT Austin Computation Center, User Services Unix Support Group Lines: 24 In article <574@tivax.turing.ac.uk> russell@turing.ac.uk (Russell Ritchie ) writes: >We are using SUN machines (3/60, 3/110, 3/160) and cannot get TeXX to >work on colour displays (/dev/cgfour0). It fails with a protocol >error, viz: I think the protocol error occurs because TeXX doesn't open its paste-up pixmaps with the right depth (it always uses 1 regardless of the depth of the screen). At least, I think this because when I changed the 2 calls to XCreatePixmap() in contrib/clients/texx/previewers/texx.c to use DisplayPlanes(DISP, DefaultScreen) instead of 1, it then worked on a Sun-4 with a CG3 running the distribution cfb server. I don't know enough about X 11 to be sure that this is the proper way to determine the particular depth texx needs here, but it seems to work ok in practice. -- Mic Kaczmarczik If you drink, don't drill. UT Austin Computation Center -- Matt Groening mic@emx.utexas.edu MIC@UTAIVC.BITNET