hsk@infko.UUCP (Friedrich Haubensak@7.90) (03/15/90)
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