From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#37689: Fringe pixmaps, widgets, etc. look ridiculously tiny in hidpi screen Date: Mon, 14 Oct 2019 14:19:55 +0100 Message-ID: <20191014131955.GC45622@breton.holly.idiocy.org> References: <83v9swqz9q.fsf@gnu.org> <83k19ao21y.fsf@gnu.org> <835zkrk9q9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="12887"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.12.0 (2019-05-25) Cc: Carlos Pita , rpluim@gmail.com, 37689@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 14 15:21:27 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iK0Ht-00039X-Cs for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2019 15:21:25 +0200 Original-Received: from localhost ([::1]:49634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iK0Hr-0004QM-LC for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2019 09:21:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36581) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iK0HZ-0004Nx-SR for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 09:21:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iK0HY-0005vs-Gr for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 09:21:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57744) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iK0HY-0005v4-AX for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 09:21:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iK0HW-0002fu-9N for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 09:21:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Oct 2019 13:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37689 X-GNU-PR-Package: emacs Original-Received: via spool by 37689-submit@debbugs.gnu.org id=B37689.157105920810189 (code B ref 37689); Mon, 14 Oct 2019 13:21:02 +0000 Original-Received: (at 37689) by debbugs.gnu.org; 14 Oct 2019 13:20:08 +0000 Original-Received: from localhost ([127.0.0.1]:38332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK0Ge-0002eH-Eb for submit@debbugs.gnu.org; Mon, 14 Oct 2019 09:20:08 -0400 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:35746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK0Gc-0002de-UA for 37689@debbugs.gnu.org; Mon, 14 Oct 2019 09:20:07 -0400 Original-Received: by mail-wr1-f42.google.com with SMTP id v8so19727128wrt.2 for <37689@debbugs.gnu.org>; Mon, 14 Oct 2019 06:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=KrdaXWiZuuOKpZRuTTGQcLIpBBYJ+HFq7eWcKrYg9/0=; b=V/V4alq2AXZpkXgKHgeWi9iDvW5cEE6mR24Wluf42tLI5zKq3xKGRVY9NzTWFcfoWX V29SbNHghMU1PrhiNpWofEeFLw66ySOrRSGcSaW1EROFpQatOvKWacK04xMU2jpprpla oHmK4tD+vHJvFlAc/nSGJeGKvvFXVkqIXL19gVLC4UAVaSTxC/Pkz4lwvyFCT1r3uhV5 z0eHxUJ/NR5ym/icY4SOlIXtx6YGuPhuFi8qF3j9YJeSVATcasfR3GY3bSAPsJFX6K+n jtnn+Xf9oElyM7UNLqJYCVgPpz08DkRjljT1cDPEkiBdK0KoHuHr5sUY9/PjGXE4Eb4/ Bscw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=KrdaXWiZuuOKpZRuTTGQcLIpBBYJ+HFq7eWcKrYg9/0=; b=QDCExS0Z+dZTL9BRjIZjx3x+qSJsEYzTJAS0YKAbzGYBYQU0GUa8YqaYivsTUA9bmm 5ZYWvBJaD0Gck+xybXck0UIn0mENP/Kg2pgd6PQysmqWWVOjZc/jau7FY2ldl17H6Fj1 uSvn3XhpjlRI2thllzQlchUtcIGviSh7c72VqYG+MRSIZ2nP2Hjbj6MOpM963gGvqmZm p4b+q7wxi/ZkPD40hQc/o7MWiezjH2UvLeUSrjaVU60xOPZTtSbEpAFSqqYphhW+tmhg y8P0pg7HbD6SbEn1IaELCqdvfX11KBSrIFBmXHJMxBo+oKGXPpJmQmCnXJGB8znY4Ykx WWjw== X-Gm-Message-State: APjAAAW0XJCjQr8RZ+u3rMpaS5VknMh5kyUAs0yz4WATDvWtci5358vL eb8mxWbRBEdvg77z71XvJuE= X-Google-Smtp-Source: APXvYqw5jknWR717gHoAZS0H7/bqanmjQgqwthXgFFjjQPHMEjC4AtHtStH/tNcwfLQpV0A30uUnVQ== X-Received: by 2002:adf:e646:: with SMTP id b6mr24885955wrn.373.1571059200850; Mon, 14 Oct 2019 06:20:00 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-d9f0-b530-d0ca-1914.holly.idiocy.org. [2001:8b0:3f8:8129:d9f0:b530:d0ca:1914]) by smtp.gmail.com with ESMTPSA id b22sm18341512wmj.36.2019.10.14.06.19.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Oct 2019 06:19:57 -0700 (PDT) Content-Disposition: inline In-Reply-To: <835zkrk9q9.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169266 Archived-At: On Mon, Oct 14, 2019 at 11:33:02AM +0300, Eli Zaretskii wrote: > > From: Carlos Pita > > Date: Sun, 13 Oct 2019 21:40:14 -0300 > > Cc: Robert Pluim , 37689@debbugs.gnu.org > > > > 1.b. Do the scaling upstream (for example, in get_fringe_bitmap_data > > as proposed above). One problem with this approach is that some > > backend could already be scaling output itself (for example, by using > > a toolkit that automatically scales according to the device > > resolution... do you know if this is the case for windows, for > > macos?). Also, it won't fix the widgets issue (anyway, as I said, > > neither the "downstream" approach will do it in 26.3). > > Granted, I prefer the second approach. We should do as little code > duplication as possible. > > I don't think individual backends do any scaling, but if some do, it > should be easy to disable the scaling in our code for those backends. macOS automatically scales, so the UI code generally doesn’t need to know that it’s running on a hi‐DPI screen. The only exception is images where ideally the program presents an image that matches the physical DPI of the screen, but the rest of the UI code behaves as if the screen is half the DPI. I think it should be easy to make it do the right thing here. -- Alan Third