[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: define_color vs. xw-color-values, or pixel vs. red, green and blue
From: |
Eli Zaretskii |
Subject: |
Re: define_color vs. xw-color-values, or pixel vs. red, green and blue |
Date: |
Wed, 14 Feb 2007 20:16:00 +0200 |
> Date: Wed, 14 Feb 2007 17:21:28 +0100
> From: "Juanma Barranquero" <address@hidden>
>
> So I suppose the question is: why does xw-color-values do
>
> return list3 (make_number ((GetRValue (foo.pixel) << 8)
> | GetRValue (foo.pixel)),
> make_number ((GetGValue (foo.pixel) << 8)
> | GetGValue (foo.pixel)),
> make_number ((GetBValue (foo.pixel) << 8)
> | GetBValue (foo.pixel)));
>
> instead of
>
> return list3 (make_number (foo.red),
> make_number (foo.green),
> make_number (foo.blue));
Whatever turns out to be the reason, I hope we are not going to
consider changing this now, since this code is there since Emacs 19.x
(with very minor changes).