Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!dev8a.mdcbbs.com!rivero From: rivero@dev8a.mdcbbs.com Newsgroups: comp.windows.x Subject: Re: HELP with DECstation 5000/200 24bit color & XAllocColorCellsDOWN Message-ID: <1991Apr11.090232.1@dev8a.mdcbbs.com> Date: 11 Apr 91 09:02:32 GMT References: <9104100234.AA16796@zia.aoc.nrao.edu> Organization: McDonnell Douglas M&E, Cypress CA Lines: 21 Nntp-Posting-Host: dev8a Nntp-Posting-User: rivero In article <9104100234.AA16796@zia.aoc.nrao.edu>, cflatter@zia.aoc.nrao.EDU (Chris Flatters) writes: > Matt Scott writes: >> 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? > > XAllocColorCells will only try the colormap you specify as its second > argument. If you want to use a non-default visual you must create a > private colormap using XCreateColormap with a pointer to the visual > you want to use. > >> How can we change the default visual from a read only to the >> read/write visual? > > Some X servers will allow you to change the default visual at start-up. > I don't know if DEC's is one of them: check the man page. > Dec 5000's allow you to change the default visual on startup. Michael