[comp.windows.x] Changing default colormap

darken@uicbert.eecs.uic.edu (07/14/90)

I'm trying to change from the default colormap in X to XA_RGB_BEST_MAP 
with no success. I'm following code I found in O. Jones book in the
color section. I have pinpointed the problem to the function 
XGetStandardColormap() which always returns a 0 (failure). Might there
be some problem with my version of X? If so, what other options do I
have? Thanks.

Rudy Darken
darken@uicbert.eecs.uic.edu

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (07/14/90)

    I have pinpointed the problem to the function 
    XGetStandardColormap() which always returns a 0 (failure).

You have to run some client that creates a standard colormap.
In R4, try "xstdcmap -best".

mouse@LARRY.MCRCIM.MCGILL.EDU (der Mouse) (07/14/90)

> I'm trying to change from the default colormap in X to
> XA_RGB_BEST_MAP with no success.  I'm following code I found in O.
> Jones book in the color section.  I have pinpointed the problem to
> the function XGetStandardColormap() which always returns a 0
> (failure).

The most probable cause, in my estimation, is that nobody has created
an RGB_BEST_MAP on the root in question.  If you think someone has, you
might check with xprop and see.  (If this is not what's wrong, I
haven't a clue.)

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu