Re: Colormap question



On Fri, 09 Feb 2001, Havoc Pennington wrote:
> 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.

Hmm. Ok, so I have to check the visual type first to make sure that the
visual has a colormap at all.

-Andrei

A room without books is like a body without a soul.
                  -- Marcus Tullius Cicero (106-43 B.C.)




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