Newsgroups: comp.windows.x Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU (der Mouse) Subject: Re: HELP with DECstation 5000/200 24bit color & XAllocColorCells Message-ID: <9104102341.AA00693@lightning.McRCIM.McGill.EDU> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Date: 10 Apr 91 23:41:47 GMT Lines: 25 > The problem is that XAllocColorCell will always return FALSE (on the > 24-bit machines). So to try and track down the problem I did some > digging and testing and discovered that the 24-bit machines do > support a DirectColor visual (read/writeable), however, it is NOT the > default visual! Does XAllocColorCells only try the default visual? No; it tries only the visual of the colormap you give it. XAllocColorCells takes a colormap as an argument; that colormap implicitly specifies the visual. (Colormaps are visual-specific.) > How can we change the default visual from a read only to the > read/write visual? This may or may not be possible. Some servers support some way to specify which visual is the default (command-line switches, for example); others don't. I would suggest you not depend on this being possible, for even if it is with your servers, someday someone will want to run the program in question on some other server that doesn't support it. Instead, make sure you find the visual you want and use it when creating your windows and colormaps. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu