From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: mituharu@math.s.chiba-u.ac.jp Newsgroups: gmane.emacs.devel Subject: Re: Removing assumption of unsigned long pixel values for colours Date: Mon, 6 May 2019 18:18:29 +0900 Message-ID: <6343f577d3ea8832db31366c86bc9e89.squirrel@weber.math.s.chiba-u.ac.jp> References: <87v9yqjdnh.fsf@gmail.com> <83a7g2kqsi.fsf@gnu.org> <87lfzlkeic.fsf@gmail.com> <20190506081255.GA78728@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain;charset=iso-2022-jp Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="266867"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: SquirrelMail/1.4.22-5.el6 Cc: Eli Zaretskii , Alex Gramiak , emacs-devel@gnu.org To: "Alan Third" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 06 11:19:34 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hNZmX-0017Jq-Vs for ged-emacs-devel@m.gmane.org; Mon, 06 May 2019 11:19:34 +0200 Original-Received: from localhost ([127.0.0.1]:53285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNZmW-00045R-SA for ged-emacs-devel@m.gmane.org; Mon, 06 May 2019 05:19:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNZlZ-0003u9-I5 for emacs-devel@gnu.org; Mon, 06 May 2019 05:18:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNZlY-0004yK-Pf for emacs-devel@gnu.org; Mon, 06 May 2019 05:18:33 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:60088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNZlW-0004wc-IH; Mon, 06 May 2019 05:18:30 -0400 Original-Received: from weber.math.s.chiba-u.ac.jp (weber [192.168.32.4]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id D429FF08F1; Mon, 6 May 2019 18:18:29 +0900 (JST) (envelope-from mituharu@math.s.chiba-u.ac.jp) Original-Received: from 180.40.221.231 (SquirrelMail authenticated user mituharu) by weber.math.s.chiba-u.ac.jp with HTTP; Mon, 6 May 2019 18:18:29 +0900 In-Reply-To: <20190506081255.GA78728@breton.holly.idiocy.org> X-Priority: 3 (Normal) Importance: Normal X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 133.82.132.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:236191 Archived-At: > 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 mituharu@math.s.chiba-u.ac.jp