From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Which should the display-pixel-width function return, physical pixel width or logical pixel width? Date: Sat, 2 Jan 2021 10:31:25 +0000 Message-ID: References: <20210101.234418.2112625777155657071.masm@luna.pink.masm11.me> <111C5580-03ED-496F-AEC7-D2C30E52B9E1@gmail.com> <20210102.164007.880768269147021789.masm@luna.pink.masm11.me> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15459"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, emacs-devel@gnu.org To: Yuuki Harano Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 02 11:32:09 2021 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 1kveCf-0003ut-JO for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Jan 2021 11:32:09 +0100 Original-Received: from localhost ([::1]:56960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kveCe-00085G-MA for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Jan 2021 05:32:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kveC5-0007cR-Ag for emacs-devel@gnu.org; Sat, 02 Jan 2021 05:31:33 -0500 Original-Received: from outbound.soverin.net ([116.202.65.218]:36035) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kveC2-0003KZ-LL for emacs-devel@gnu.org; Sat, 02 Jan 2021 05:31:32 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id D01266021B; Sat, 2 Jan 2021 10:31:27 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1609583487; bh=q29cvM6gY5bHEe8Ypn1CG7syjJ8AmTsXwN+o4elM/M0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gk1DzF7hF/sY8Uh6nR4SwKy1r0pz+8Znd5u3K47PK0+QDgnH7dVSwuHQtKPmpFVOW Ikfstz9MjzCbk8i6BU3R29Vac/QAotFgBuduHOhVDTTMOl9/ddRsGmRG1WjFMNXeP7 xHoNroAjMx0K41osmQKu21tLs56ZymDR8ec5MViUEUMEGXZsF9bkJtm8m2S/31VZUZ JDRlm7xBOearmu/RBulYldH97bQRsSRrUyYbFFPeefTuo5t3TbfWfBjbmkh/5x6yJc xjk2Tc1hFagC9PVBnsAZY2qB5T4zU3HYfkvOGwZ60hwZ6xC+c1z9eLxkCuf8Dmc66m o7AYNXmWr+W6Q== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 730C720297C8F1; Sat, 2 Jan 2021 10:31:25 +0000 (GMT) Mail-Followup-To: Alan Third , Yuuki Harano , casouri@gmail.com, emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: <20210102.164007.880768269147021789.masm@luna.pink.masm11.me> Received-SPF: pass client-ip=116.202.65.218; envelope-from=alan@idiocy.org; helo=outbound.soverin.net 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_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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:262307 Archived-At: On Sat, Jan 02, 2021 at 04:40:07PM +0900, Yuuki Harano wrote: > > * ns > frontend is logical. > when creating image area, its size is physical. > ns-display-monitor-attributes-list does nothing about scaling. maybe returns logical. > emacs internal is logical. macOS hides the scaling from us almost completely, so practically everything it does is logical, not physical. Certainly all the data returned to lisp is logical. -- Alan Third