emacs-devel
[Top][All Lists]
Advanced

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

Re: Removing assumption of unsigned long pixel values for colours


From: mituharu
Subject: Re: Removing assumption of unsigned long pixel values for colours
Date: Mon, 6 May 2019 18:18:29 +0900
User-agent: SquirrelMail/1.4.22-5.el6

> On Sat, May 04, 2019 at 05:04:43PM -0600, Alex Gramiak wrote:
>>
>> It might also help simplify the NS side to use NSColor objects directly
>> rather than using the unsigned long values as indices to an
>> ns_color_table (CC'd Alan to confirm/deny).
>
> Unfortunately I don’t know too much about this area, but it certainly
> looks like it might simplify things. It seems like there’s a lot of
> conversion from NSColor, to unsigned long, which must then be
> converted back to NSColor for drawing.

In the Mac port, CGColor objects are encapsulated into GC, and
conversion from unsigned long only happens when setting GC
foreground/background values.

                                     YAMAMOTO Mitsuharu
                                address@hidden




reply via email to

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