This patch corrects the calculation of available color cells on X, msw and gtk devices.
The value is limited to 24 bits of color, which is a realistic limit and fits into an XEmacs int.

--
Jeff Sparkes
jsparkes@gmail.com