[Top][All Lists]

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

Re: Identifying the face between STRETCH and right fringe.

From: Robert Pluim
Subject: Re: Identifying the face between STRETCH and right fringe.
Date: Wed, 28 Nov 2018 10:56:23 +0100

Eli Zaretskii <address@hidden> writes:

>> From: Robert Pluim <address@hidden>
>> >> > So where does the RGBA value in FRAME_BACKGROUND_PIXEL come from?
>> >
>> > Can you answer this question?
>> Itʼs set by the NS version of x_set_background_color, so itʼs correct,
>> just not the same format as the face background colour.
> So they call ns_lisp_to_color once and store the result?

Well, they allocate an entry in the frame color_table, store the
result of ns_lisp_to_color there, and then use an index into the table
from there on. And convert it to RGBA and store it in

> I still wonder why they don't do this with other face colors.  Is
> ns_lisp_to_color expensive or something?

Donʼt do what with other face colours? As far as I can tell the same
thing is done for the foreground (and ns_lisp_to_color does look
expensive, as it parses colour names and RGB specs and probably more).


reply via email to

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