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: "Fix" sag scaling for hidpi Date: Sat, 13 Feb 2021 11:17:38 +0000 Message-ID: References: <83sg69o3av.fsf@gnu.org> <87mtwhctte.fsf@gnus.org> <9C04F72C-1BB6-4308-AD8E-4A2B471CAC4E@gmail.com> <871rdkte4f.fsf@gnus.org> 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="23381"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , Robert Pluim , Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 13 12:18:56 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 1lAswx-0005yF-LY for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Feb 2021 12:18:55 +0100 Original-Received: from localhost ([::1]:42158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAsww-0001xA-C8 for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Feb 2021 06:18:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAsvx-00016e-P3 for emacs-devel@gnu.org; Sat, 13 Feb 2021 06:17:53 -0500 Original-Received: from outbound.soverin.net ([116.202.65.218]:39231) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAsvq-0001ru-QH; Sat, 13 Feb 2021 06:17:53 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (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 B6767600D0; Sat, 13 Feb 2021 11:17:43 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1613215062; bh=DrTPRdc1SESzLx4DBwB9VVlBkuZRmSjCRRpZ143hkjU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nC6TLcvYEHMPaUyzoF6FpeHvGa/WoITbW6xw5UyWFTNzr4b9mnm9adq8a0JGKmDus bTTm1fB1ScuGgRChykLGdKB1RWsgGQhOqO9OeQX6miHT2udQNpNA0x6hzG/uIs1ICD hy/HPR+lbFSH7rqklpj2r7yzW89hqAw+2etQ9546iXyyRswFOrCHumCXbN+6lz4RKl xCI9t1PpLyqtMwoBpQJ0SfqpSo9uIedYX89iObMwvwBs4s2J9G3Uj3YM4xhTFW4mGO HH1ySniyI6nqpuLdTVUsZC8YStTU+W0lvJTe2cJiVqxbMVG99ijwn4p4e0ZcB+evGt pXy3BhNb1IY+w== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 94BCA202A65673; Sat, 13 Feb 2021 11:17:38 +0000 (GMT) Mail-Followup-To: Alan Third , Lars Ingebrigtsen , Yuan Fu , emacs-devel , Eli Zaretskii , monnier@iro.umontreal.ca, Robert Pluim Content-Disposition: inline In-Reply-To: <871rdkte4f.fsf@gnus.org> 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:264597 Archived-At: On Sat, Feb 13, 2021 at 12:13:04PM +0100, Lars Ingebrigtsen wrote: > Alan Third writes: > > > OK, I've got something that works here. It seemed a bit too easy given > > how much code there is in image-mode.el to do with scaling, but as I > > said, it seems good to me. > > I've not tried the patch, but if I understand correctly, it won't affect > the displayed size of non-SVG images? In which case it looks good to > me, I think... No, on macOS retina screens it will display raster images at 1/scale-factor size in image-mode, which is 1:1 with physical pixels on the screen. If you just insert an image using create-image or in some other manner, then nothing has changed. I'm going to try and code up the GTK side of this, and then hopefully more people can see the behaviour and decide if it's what we want to happen. -- Alan Third