From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Use 65535 as scale factor for color-values on NS Date: Sat, 6 Jun 2020 20:57:40 +0200 (CEST) Message-ID: <20200606185734.GA16539@breton.holly.idiocy.org> References: <144C70D7-33AA-4840-89A6-205F1EDF4847@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="31756"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: Mattias =?iso-8859-1?Q?Engdeg=E5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 06 20:58:35 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jhe1b-0008B1-Lx for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Jun 2020 20:58:35 +0200 Original-Received: from localhost ([::1]:59686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhe1a-000778-Nc for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Jun 2020 14:58:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhe0q-0006dG-9C for emacs-devel@gnu.org; Sat, 06 Jun 2020 14:57:48 -0400 Original-Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:48956) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhe0o-0008Qd-62 for emacs-devel@gnu.org; Sat, 06 Jun 2020 14:57:47 -0400 Original-Received: from smtpauth1.co-bxl (smtpauth1.co-bxl [10.2.0.15]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 783805BF; Sat, 6 Jun 2020 20:57:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1591469862; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To; l=612; bh=KzxUxjvsGXnAXjmolzuRFmEkRnmcEzyLlpoo+HiUWnw=; b=Ogatimz/mLViehRGfNFhQ7Tor7DbIOnG8Uy5CC8yP9Ok6mYQcdr7rHQ5+D3o3Ove Zh8ZdW+SpZsgsOP7R4g/ChWeyqj5zLbvms/hVGCEWB+/CS67l1ru+jmRb+g5Vy6cHRg ytb95Np44/sBc/QcfDlDiSEfRAmNTIzUuB7Dps6x/dZZriKIhFdSb5tJdJYbhJyu1kO R8EZjfnjhGI8Bg/Lvm1pPWBP9/pFGOomM4Cq8eRrBcMBCNmJhPpbI1PXA2OdiTnr5PK DXO1PD7J4jphRhBq9VF/oas/wN5u6Cie8Tl11glHaoT3DHsyplQ8FF8HXQgPGPQc89N wZX2+ycE2g== Original-Received: by smtp.mailfence.com with ESMTPA ; Sat, 6 Jun 2020 20:57:39 +0200 (CEST) Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 5B97A202359CE4; Sat, 6 Jun 2020 19:57:34 +0100 (BST) Mail-Followup-To: Alan Third , Mattias =?iso-8859-1?Q?Engdeg=E5rd?= , Emacs developers Content-Disposition: inline In-Reply-To: <144C70D7-33AA-4840-89A6-205F1EDF4847@acm.org> X-ContactOffice-Account: com:241649512 Received-SPF: pass client-ip=212.3.242.97; envelope-from=alan@idiocy.org; helo=mailout-l3b-97.contactoffice.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/06 14:57:42 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251959 Archived-At: On Sat, Jun 06, 2020 at 11:57:03AM +0200, Mattias Engdegård wrote: > Alan, it seems that only NS uses 65280 as scale factor for > 'color-values'; all other back-ends use 65535. Do you know if there > is any reason for keeping it this way? Otherwise, I propose we > change it (see patch). > > It is probably just a relic from when colour components were scaled > from 8 to 16 bits by multiplication with 256 instead of 257; this > seems to have been fixed everywhere else. I'm not aware of any reason for this, and I don't see any immediate problems with your (second) patch applied. -- Alan Third