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: Wed, 10 Feb 2021 19:17:52 +0100 Message-ID: <87eehng52n.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> <87mtwhctte.fsf@gnus.org> <459A0475-E3E7-4159-82DF-93809CCF1E24@gmail.com> 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="37260"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Alan Third , emacs-devel , Eli Zaretskii , monnier@iro.umontreal.ca, Robert Pluim To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 10 19:20:06 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 1l9u5u-0009al-G9 for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Feb 2021 19:20:06 +0100 Original-Received: from localhost ([::1]:40808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9u5t-0004Qz-HG for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Feb 2021 13:20:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9u40-0003sC-Lr for emacs-devel@gnu.org; Wed, 10 Feb 2021 13:18:08 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:35346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9u3y-0002Un-NF; Wed, 10 Feb 2021 13:18:08 -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=d0tat6ihZ9A9EMUvSFEJY7WocMG4wGNQaU5lTiVzQao=; b=eKD3HMqaqrgHc+GNlrMB8WCS0+ 1mwDvlGTfP6MrTXk69kWi3bP0CWhDuvdT9nOVJZP/hEzK4NcTTl7faNjq50Ow16JO86fdQxy5I6Yk UuGP2kphJNoU+AWWCT/xBEnWcMX07NVfGeFvlHPYv78EX1Fzv8yAOlNb/NF3i06CfuOQ=; 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 1l9u3m-0000Ht-7k; Wed, 10 Feb 2021 19:17:56 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEX83Lr94cKsqadv QmL///9urP2wAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UCChIONtG7XJwAAAGBSURBVDjLdZSNlYQw CISDNgCxAQMNeKT/3m7Ij/HcPd7qc+eTZEKIKX0P+lD4PzBC3iMIL8AzvQn8PQOAFpDxSIkoMfGt UbuUJQkxRY6I3M6yUtNZSKSDHsePIvaiXZe5JD7cVLOplRuEQ6LdzVxN68pow3FRAH8BTrRBQgZC JmhVoN2KqSPgema0ZeyqVr1atTVUENorwuNWnnYpHXXGI6O5wvuRcPwFmigMmRb2k9MNckUNMa+i XvlUXwBvV9eqXnTD4wIeXq0C6Wm2wFYsEvCrmOcJrvBkbUCU5p6DMZJDgoY1ut92uXq2tnKN+7Xs 1hp6Y0gpiRaY4ftVC62Vj5etlly2ZzPki+HzzGdsBi6a+0GjZ6TrA7R2xY3ogRoIcfxdMZohvUHb b8ZBWBLz3QxoY/mIBehzjgAphn3yfohEsA3oN/XZ0z0DK8Dubmc0xCOD4ih9nbz561VZvttB/OJ2 zNErFK6iNiny0l2NKCVczC/EOPZzZ+j9ZRAaAk/wC8i0SPbmcZflAAAAJXRFWHRkYXRlOmNyZWF0 ZQAyMDIxLTAyLTEwVDE4OjE0OjUzKzAwOjAwnseW2AAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0w Mi0xMFQxODoxNDo1MyswMDowMO+aLmQAAAAASUVORK5CYII= X-Now-Playing: DMX Krew's _Sound of the Street_: "Sound of the Street" In-Reply-To: <459A0475-E3E7-4159-82DF-93809CCF1E24@gmail.com> (Yuan Fu's message of "Wed, 10 Feb 2021 13:07:17 -0500") 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:264319 Archived-At: Yuan Fu writes: > I=E2=80=99m not sure about x11+gtk, any one knows if it can report both > physical and logical pixels when on a hidpi display? For Gtk, we already do: #if GTK_CHECK_VERSION (3, 22, 0) scale =3D gdk_monitor_get_scale_factor (monitor); #elif defined HAVE_GTK3 scale =3D gdk_screen_get_monitor_scale_factor (gscreen, i); #endif So we can use the same to compute logical pixels there. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no