Re: Colormap question



Havoc Pennington <hp redhat com> writes:

> Andrei Zmievski <andrei ispi net> writes:
> > 
> > When I do gdk_colormap_get_system(), the colormap I get has 'size' member set
> > to 64, but 'colors' is NULL. Why is that?
> > 
> 
> The code looks like this happens for TrueColor visuals. The "64" is
> apparently visual->colormap_size reported by X which is "the number of
> cells for the biggest individual pixel subfield" according to the Xlib
> book. I have no idea what that is supposed to mean; the
> interpretations I can come up with for it don't make sense with the
> number 64.

Standard 16 bit color is divided 5-6-6 for red,green,blue. 
So, there are 6 bits for green == 64 shades.

                                        Owen




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]