emacs-devel
[Top][All Lists]
Advanced

[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 14:21:38 +0100

Eli Zaretskii <address@hidden> writes:

>> From: Robert Pluim <address@hidden>
>> Cc: address@hidden
>> Date: Wed, 28 Nov 2018 10:56:23 +0100
>> 
>> > 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?
>
> Why they don't do the same with face colors as they do with
> FRAME_BACKGROUND_PIXEL, i.e. convert to RGBA and store the RGBA in the
> face colors, instead of the indices.

Because then every time they want to do something with a face colour,
they'd have to convert it from RGBA, allocate the corresponding
NSColor, use it, destroy it etc. Instead the code creates the 'native'
color object, and stores it in the face, so no conversions are
necessary.

Robert



reply via email to

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