emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Font-lock.el uses strange value for min-colors (Was x-display-color-


From: Eli Zaretskii
Subject: Re: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number)
Date: Sun, 29 Feb 2004 23:25:01 +0200

> From: "Jan D." <address@hidden>
> Date: Sun, 29 Feb 2004 20:27:56 +0100
> 
> It is actually uncommon for any X server to return more than 256 for
> DisplayCells, presumably to save memory if a lot of colormaps are
> allocated.
> 
> A better way to find out the number of colors that can be displayed
> at the same time is (1 << DisplayPlanes(...)).  There is no need to
> distinguish between visual types if number of colors is calculated this
> way.

I don't know enough about X to even parse the last sentence, but I do
think display-color-cells should return the number of distinct colors
Emacs can use.  It sounds like display-color-cells does that on every
platform except X (MS-Windows, MS-DOS, Unix tty, don't know about the
Mac).  That function is advertised as one that returns the number of
distinct colors, so IMHO it had better do what we say it does.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]