From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#37689: Fringe pixmaps, widgets, etc. look ridiculously tiny in hidpi screen Date: Fri, 11 Oct 2019 00:48:02 -0300 Message-ID: References: <83sgo1rpbx.fsf@gnu.org> <831rvksksa.fsf@gnu.org> <83v9swqz9q.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223698"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Robert Pluim , 37689@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 11 05:49:15 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 1iIlvU-000vwC-AZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Oct 2019 05:49:12 +0200 Original-Received: from localhost ([::1]:45630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIlvS-0003mM-GU for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Oct 2019 23:49:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53864) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIlvM-0003mE-63 for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 23:49:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIlvL-0000aV-2u for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 23:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48609) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iIlvK-0000aK-Vd for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 23:49:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iIlvK-0004sL-DZ for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 23:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Oct 2019 03:49: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.157076570018668 (code B ref 37689); Fri, 11 Oct 2019 03:49:02 +0000 Original-Received: (at 37689) by debbugs.gnu.org; 11 Oct 2019 03:48:20 +0000 Original-Received: from localhost ([127.0.0.1]:57430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIlue-0004r2-KU for submit@debbugs.gnu.org; Thu, 10 Oct 2019 23:48:20 -0400 Original-Received: from mail-yb1-f170.google.com ([209.85.219.170]:42356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIlud-0004qh-3b for 37689@debbugs.gnu.org; Thu, 10 Oct 2019 23:48:19 -0400 Original-Received: by mail-yb1-f170.google.com with SMTP id 4so2664712ybq.9 for <37689@debbugs.gnu.org>; Thu, 10 Oct 2019 20:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vpcxSQUYSLCb2BQjmBQO7gWwXngohQ0k8cOBTcF6fMQ=; b=cmF4Mjpd2n7FojL53M0rfPD7zkEYbKNL3GlXn/23rV/PuXqQydL6SCuOx7vaeTZyce 5XvxaA4v65cGr62UNJkjo3booxVMEUTrBSOLe+gMHTxUV5Rn45nv13p5cMfb/yzp3BRy 2tcsDF+qsLHuKK9nM3eCWcrlSZU1FEVIq6sq//lKARzN8rCn6LaxS7Zz7bA99D7SnBtt jo37jLVCU8If4iMgQbkJbLZEXo/fczgH61P4V9px7dE26HJwDF4U6Yt+gQ3PlWzEefaE J9b9dkyhUhe5SV2WBbyoeagdDGISCSv2HbdSxj95OtaGCzRtYVbpaECqZwtVEpjE9RXY /JXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vpcxSQUYSLCb2BQjmBQO7gWwXngohQ0k8cOBTcF6fMQ=; b=U/nikt66fDx6QPdB4gWDYKdlSpvRgGt2yibUKCeP80w6pcut47z6omgHx7GvJXVQI4 NzaFcsuwI6tY2usU5vY56VFz00iICmpFAYKNllhUIh/mnm9iI9csi5grjpIXRjV0JjfO nAYNLMJKW81MQTXWfbbfUK59K3vi5wtannVMAoI8R7EQk5FYjKUVfZRJ+LcoZPirIrFa KpZfsUx6dCaPZVAKIuWPveEG9goR19CL8/rt+Ryq03V6QYP6vrvLt6bRrCBk/gKg8mIU XzgEDO+7jdSnjjN5eBEadHvtYKfjqiPT98sPkG3oCb/Prb8JSgiSBZDmHORzDs22Vsa9 wL7Q== X-Gm-Message-State: APjAAAU2iBDZGX0Sq+Ht28c/3evpZJBcebKabhMeIEPOncru3oQTMnzT cmMzkaRobKEPKOsSxrDaYN6s4IBLI48WiTiOVDk= X-Google-Smtp-Source: APXvYqx60j/qLIP0IpEhMTvKFWftwDdoT/pbK2J6xKSzmZ8ktZA34RNF1c9zDBiuPBeVzOrDCWAucbiDa41NpRzB4HA= X-Received: by 2002:a25:9947:: with SMTP id n7mr8434187ybo.263.1570765693527; Thu, 10 Oct 2019 20:48:13 -0700 (PDT) In-Reply-To: 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:168924 Archived-At: If you accept to recompute the pixmap on-the-fly each time it's demanded, then fringe.c: static struct fringe_bitmap *get_fringe_bitmap_data (int bn) seems like a good place to do the transformation above. In order to avoid rescaling it each time, the pixmap structure could contain an extra field with its scaling factor (initially 1) that is updated after the first rescaling so that get_fringe_bitmap_data knows (by comparing this number to the system scaling factor) that it's not necessary to rescale the pixmap afterwards.