Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!samsung!uunet!orca!mesa!rthomson From: rthomson@mesa.dsd.es.com (Rich Thomson) Newsgroups: comp.windows.x Subject: Re: color maps in 24bit X? Message-ID: <1991May24.005241.8743@dsd.es.com> Date: 24 May 91 00:52:41 GMT References: <15024@hacgate.UUCP> Sender: usenet@dsd.es.com Reply-To: rthomson@dsd.es.com (Rich Thomson) Organization: Design Systems Division, Evans & Sutherland, SLC, UT Lines: 24 Nntp-Posting-Host: 130.187.85.21 In article <15024@hacgate.UUCP> waung@rscene.hac.com (Franklin Waung) writes: >Anyone knows of a way to swap color maps on a 24 bit color system? > >We are running a Sun4 Sparc Station with a 24bit color display >with "true color, 24bit depth" as its default visual. First, I'm not sure what you mean by "swap color maps". Besides, you can't change the colormap of a TrueColor visual because the visual has a read-only colormap. Look at what other visuals are supported for the server. DirectColor is the read-write equivalent of TrueColor. You'll have to use XMatchVisualInfo (or equivalent) to determine a visual class with a writable colormap for the window when you create it. You may also have to create your own colormap (depends on your environment and server). -- Rich -- ``Read my MIPS -- no new VAXes!!'' -- George Bush after sniffing freon Disclaimer: I speak for myself, except as noted. UUCP: ...!uunet!dsd.es.com!rthomson Rich Thomson ARPA: rthomson@dsd.es.com PEXt Programmer