Around 9 o'clock on Feb 17, Ian Romanick wrote: > First, a comment in the structure says that nplanes is "log2 > (ColormapEntries)." Does that mean that "(1U<< v->nplanes) == > v->ColormapEntries" is always true?
no. ColormapEntries on a Direct/True visual is 1 << max(nred,ngreen,nblue). > Second, for TrueColor and DirectColor visuals, is it safe to assume > nplanes is the sum of the red, green, and blue bits? no. There may be extra bits which have no defined meaning in the core protocol which are used by extensions. -keith
pgp00000.pgp
Description: PGP signature