Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!vuwcomp!andrew From: andrew@comp.vuw.ac.nz (Andrew Vignaux) Newsgroups: comp.windows.x Subject: Re: Toolkit graphics Message-ID: <14881@comp.vuw.ac.nz> Date: 5 Jun 89 01:33:56 GMT References: <1901@wasatch.utah.edu> <6910009@hpfcdc.HP.COM> Reply-To: andrew@comp.vuw.ac.nz (Andrew Vignaux) Organization: Comp Sci, Victoria University, Wellington, New Zealand. Lines: 23 In article <6910009@hpfcdc.HP.COM> stroyan@hpfcdc.HP.COM (Mike Stroyan) writes: >In article <1901@wasatch.utah.edu> (Mark L. Lindsey) wrote: >> Another question. How do I determine if a machine is monochrome or color? >> I thought I could determine it by examining the depth of an open screen. But >> it always returns 8, even on a monochrome machine. What am I missing? > >You are probably missing release 6.5 of the HP X11 server. :-) Will the MIT server be updated to report the significant bits per pixel? >A common way to get around it is to check DisplayCells() for more >than two cells. Even this is not guaranteed to get a nice result. A HP 98788A/98548A reports a 4 cell colormap on our modified MIT server. This means that "vital" programs like xconq and xcalc start using lots of colors which all get mapped to the same shade. I guess they should check for the visual class as well. Andrew -- Domain address: andrew@comp.vuw.ac.nz Path address: ...!uunet!vuwcomp!andrew