emacs-devel
[Top][All Lists]
Advanced

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

Re: Use 65535 as scale factor for color-values on NS


From: Alan Third
Subject: Re: Use 65535 as scale factor for color-values on NS
Date: Sat, 6 Jun 2020 20:57:40 +0200 (CEST)

On Sat, Jun 06, 2020 at 11:57:03AM +0200, Mattias Engdegård wrote:
> Alan, it seems that only NS uses 65280 as scale factor for
> 'color-values'; all other back-ends use 65535. Do you know if there
> is any reason for keeping it this way? Otherwise, I propose we
> change it (see patch).
> 
> It is probably just a relic from when colour components were scaled
> from 8 to 16 bits by multiplication with 256 instead of 257; this
> seems to have been fixed everywhere else.

I'm not aware of any reason for this, and I don't see any immediate
problems with your (second) patch applied.
-- 
Alan Third



reply via email to

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