Re: Colormap question



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.

Anyway, for TrueColor there's no reason to poke in there anyhow.

Havoc





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