Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!usc!apple!snorkelwacker.mit.edu!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: setting colors on TrueColor visual Message-ID: <9011211254.AA10841@Larry.McRCIM.McGill.EDU> Date: 21 Nov 90 12:54:11 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 21 > Is, perhaps, the TrueColor Visual you are getting only 8 bits deep? > Check your red_mask, green_mask, and blue_mask for being > 0xff0000,0xff00,0xff respectively. Those values would indicate a 24 > bit TrueColor visual. (Or some other sensible permutation, like 0xff, 0xff00, 0xff0000, of course.) > The behavior you describe seems to indicate an 8 bit TrueColor > visual. Note that it is possible for an 8 bit TrueColor to co-exist > with a 24 bit TrueColor visual on the same X server. I nearly said that, but then I looked a little closer. Note the pixel values he's getting back: their spread is far more than 256, which makes it doubtful that it's a simple 8-bit TrueColor setup (such as the MIT server fakes on PseudoColor-type hardware). der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu