Path: utzoo!attcan!uunet!cs.utexas.edu!yale!think!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!unido!infko!hsk From: hsk@infko.UUCP (Friedrich Haubensak@7.90) Newsgroups: comp.text.tex Subject: Re: TeXx under Ultrix problem Summary: Tune up texx to use color monitors Message-ID: <953@infko.UUCP> Date: 15 Mar 90 15:09:42 GMT References: <3429@ul.ie> Reply-To: hsk@infko.UUCP (Friedrich Haubensak@7.90) Organization: University of Koblenz (EWH), West Germany Lines: 33 In article <3429@ul.ie> molloyt@ul.ie writes: > > When you run TeXx it creates the initial window and may start > to display text on it. Then it crashes with the X11 error Sounds like the problems I had when trying to use texx on a color monitor. - Introduce `static int defaultDepth' in the section `X-11 related variables' of texx.c, - set it as `defaultDepth = XDefaultDepth(DISP, defaultScreen);' in main(...) right after you've set defaultScreen and - use it in both calls to XCreatePixmap (one in allocatePixmaps() and one in allocateLargePixmaps() as the parameter describing the depth of the pixmap. (B/w monitors have depth 1, color monitors usually 3 [red-blue- green]; so the `1' used as parameter in the copy of texx.c I got isn't very appropriate:-) Hope this helps! (And thanks to Klaus Thull, Berlin, who once gave the hint to look at this point.) Fritz - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | | Kluge Menschen glauben zu machen, |___ ___ | / man sei, was man nicht ist, | | |___ |\/ ist meist schwieriger, | | ___| | \ als so zu werden, wie man scheinen will. Friedrich Haubensak, Informatik, Uni Koblenz, W. Germany --- hsk@infko.UUCP