Path: utzoo!attcan!uunet!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: Colormaps and Visuals Message-ID: <8909201307.AA19054@expire.lcs.mit.edu> Date: 20 Sep 89 13:07:36 GMT References: <8909191908.AA04405@popeye.nosc.mil.sun.com> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 24 Also, is the DefaultColormap apply to a window, or does it apply to a visual? A visual. I have queried the Visuals and found the proper type, but do no see how I can get the colormap from the Visual Info. There aren't preallocated colormaps for all visuals, there's just the default colormap, which is what gets used for the root window initially. Some sharing of maps for other visuals can be done with Xlib's standard colormap mechanism. Is there a call that returns the number of un-allocated color cells in a Colormap? There is no protocol request for this. The theory is that you should just allocate along in whatever map you prefer, and if you run out, use CopyColormapAndFree to move stuff over to a new map. And if not, will something like this be added in the future? No plans.