Re: Colormap question
- From: Owen Taylor <otaylor redhat com>
- To: Havoc Pennington <hp redhat com>
- Cc: Andrei Zmievski <andrei ispi net>, gtk-list gnome org
- Subject: Re: Colormap question
- Date: 09 Feb 2001 02:12:09 -0500
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]