From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: "Fix" sag scaling for hidpi Date: Sat, 06 Feb 2021 12:35:41 +0100 Message-ID: <87mtwhctte.fsf@gnus.org> References: <07D5E64D-DAD0-45B3-B272-627A73D7CBAE@gmail.com> <7308DB2C-27A5-4227-A1F9-9949EE558052@gmail.com> <87sg6alweo.fsf@gnus.org> <87pn1erewq.fsf@gmail.com> <87wnvlecrw.fsf@gnus.org> <83sg69o3av.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22224"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: rpluim@gmail.com, emacs-devel@gnu.org, casouri@gmail.com, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 06 12:36:34 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 1l8LtC-0005gY-GP for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Feb 2021 12:36:34 +0100 Original-Received: from localhost ([::1]:37768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8LtB-0006uL-HZ for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Feb 2021 06:36:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8LsZ-0006AZ-4R for emacs-devel@gnu.org; Sat, 06 Feb 2021 06:35:55 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:41498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8LsV-0008Aa-IU; Sat, 06 Feb 2021 06:35:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=PArbqxYcvTUV39QzlzGXG2GR6jL2GtB5+RHxuKWbz+Q=; b=RP0pb+trIPQ7VurM7B6thqG1f+ mHvgbLHcBQkMEw3fbOHKbd2NWdqBIYf8ENR4USb5S/p/5GUBPoSmdta/Gav65OpfDqRGXXk2/gqmT zX+aSmyMgk+ndtD18wiL8MHLfxT0uqV/DqA7YE3Se8iOW/hs5L8Gy/J3XzODdbM0F148=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8LsM-00052D-RZ; Sat, 06 Feb 2021 12:35:47 +0100 X-Now-Playing: David Allred's _In A Town You Wouldn't Know_: "Eyes" In-Reply-To: <83sg69o3av.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Feb 2021 13:15:20 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=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:264055 Archived-At: Eli Zaretskii writes: > If someone explains what are the "logical" and "physical" pixel sizes, > I could try figuring out what that means for the MS-Windows case. Physical pixel size is what you'd think -- it's one actual pixel on the screen. (If the monitor is 1280 =C3=97 1024, you have (* 1280 1024) =3D> 1310720 physical pixels.) "Logical" pixels was something that was introduced when people started making high-resolution screens. In a 2x HiDPI scenario, the OS will report that the 1280 =C3=97 1024 is really a 640 x 512 screen, but if you give it an image that's 640x512 to display, it'll scale it up, using four physical pixels per logical pixel, and this will be blurry. So you give it a 1280x1024 image if it's a logical 640x512 2x screen if you don't want blurriness. :-/ (Of course, with fonts you avoid the blurriness, because it'll just render the fonts to whatever the physical pixels are.) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no