XEmacs returns the wrong values for display-color-cells

Jeff Sparkes jsparkes at gmail.com
Fri Mar 11 14:20:34 EST 2011


(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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cells.patch
Type: text/x-patch
Size: 1883 bytes
Desc: not available
Url : http://lists.xemacs.org/pipermail/xemacs-beta/attachments/20110311/a5516bb5/attachment.bin 


More information about the XEmacs-Beta mailing list