XEmacs returns the wrong values for display-color-cells
Stephen J. Turnbull
stephenjturnbull at gmail.com
Fri Mar 11 21:08:20 EST 2011
Are there really 32-bit displays? I thought that those were all 24-bit displays
with 8-bits padding?
Would there really be any harm in claiming that a map with 4,294,967,296 cells
has "only" 16,777,216 for this purpose? Or EMACS_MAX_INT?
(Sorry for the top-post.)
On Sat, Mar 12, 2011 at 4:20 AM, Jeff Sparkes <jsparkes at gmail.com> wrote:
> (display-color-cells) returns 256 on my 24 bit X display. It returns 0 on
> ms-windows. (It also returns 256 on gtk devices).
> What's happening is that it's returning the size of the default colormap,
> not largest possible one.
> I made it return a float to avoid overflow with a 32 bit depth display.
>
> --
> Jeff Sparkes
> jsparkes at gmail.com
>
> _______________________________________________
> XEmacs-Beta mailing list
> XEmacs-Beta at xemacs.org
> http://lists.xemacs.org/mailman/listinfo/xemacs-beta
>
>
More information about the XEmacs-Beta
mailing list