From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87925 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.gnus.general Subject: Re: The Gnus logo in the modeline is displayed with a non-transparent background Date: Fri, 30 Mar 2018 09:39:53 +0200 Message-ID: <878taaqaeu.fsf@gmail.com> References: <87h8q4wybs.fsf@tullinup.koldfront.dk> <87371o8zj8.fsf@linux-m68k.org> <87woz07jps.fsf@tullinup.koldfront.dk> <87tvu4sjmz.fsf@ericabrahamsen.net> <87k1uzmsib.fsf@tullinup.koldfront.dk> <87lgffqzc1.fsf@ericabrahamsen.net> <87efk9qeul.fsf@tullinup.koldfront.dk> <874lkzuwpx.fsf@ericabrahamsen.net> <87y3ib6qzt.fsf@tullinup.koldfront.dk> <87fu4j3wyr.fsf@gmail.com> <87d0znt65g.fsf@tullinup.koldfront.dk> <871sg3dlkn.fsf@gmail.com> <874lkzt189.fsf@tullinup.koldfront.dk> <87lgeadfch.fsf@gmail.com> <87tvsysuhc.fsf@tullinup.koldfront.dk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1522395540 28108 195.159.176.226 (30 Mar 2018 07:39:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Mar 2018 07:39:00 +0000 (UTC) Cc: ding@gnus.org To: asjo@koldfront.dk (Adam =?utf-8?Q?Sj=C3=B8gren?=) Original-X-From: ding-owner+m36139@lists.math.uh.edu Fri Mar 30 09:38:56 2018 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048034.atla03.us.yomura.com ([107.189.48.34]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1och-0007EI-V9 for ding-account@gmane.org; Fri, 30 Mar 2018 09:38:56 +0200 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048034.atla03.us.yomura.com (Halon) with ESMTPS id b16fa2f0-33ed-11e8-950a-b499baa2b07a; Fri, 30 Mar 2018 07:41:01 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.90_1) (envelope-from ) id 1f1odu-0007VT-Lr; Fri, 30 Mar 2018 02:40:10 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1f1odp-0007Uo-0a for ding@lists.math.uh.edu; Fri, 30 Mar 2018 02:40:05 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.90_1) (envelope-from ) id 1f1odn-0006o5-3l for ding@lists.math.uh.edu; Fri, 30 Mar 2018 02:40:04 -0500 Original-Received: from mail-wr0-f171.google.com ([209.85.128.171]) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1f1odk-00015M-S0 for ding@gnus.org; Fri, 30 Mar 2018 09:40:00 +0200 Original-Received: by mail-wr0-f171.google.com with SMTP id z73so7340767wrb.0 for ; Fri, 30 Mar 2018 00:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=eMD9A5DDe5rafaYNYUFeHP2EfcKBbxEX+BaoXr5uYRU=; b=Qp+gyk7XLnNcxjEWn2D03DkyvQ2QIPPdvKYWudqDFwloqmJYYSh7fO/gmhEoZ5IEHX 52gEwTeCEIU7srNoB8kV2v5Lcozs6C9/u+LHpTaer5Ket/hdZsFos8G4vM+KFbz3r6J1 xjw1PUcC7se2n2ZzcbtGrm43A72+/OnsQs0Ank39Pjpgc6r8raU+xEvR7iyOpiDnhNTY 8jZVYEbJmb44Uh0GXFM161KP1DWHr3TV9mnheOErhoO2XaNpC8/u++9gvpOPIwRHkjNq /Zvg4GtqsgcDEu3nTme1FrVzR5WkBmnY1kW9HTyYceSiPby1hvu5Ywb1hM6zc20M1UDH zPNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=eMD9A5DDe5rafaYNYUFeHP2EfcKBbxEX+BaoXr5uYRU=; b=YzngtjIpigj9LpeYn96spOgWgTvEWhC7Hj8iNfhwLEjVYgC0WXvKmUx1mldbIjpIQk I4Z6ZTOvWdk5N1h19ByP/AwMc8hCejs0ZxwoXNkvjyVQQy5fOgAcWKM4U6+LlXKWNsop 1I8oCOr8T4aNFxnhcnIrTR7kC4YqPWawP3mXYH0wfBvUY6Z2NHQdArqoVwn2eXnGlQ66 VnMOsXOkoAyDifOjcs2I+LUv8oJR5Jf9guk65qt1FXeH6xhLDduQq509iLuldCJwbyLn 43DUuwON4zwY+eS5eiBsy+t/0Szf462H8RlcqrRG89qyE89WjVwtsmJsJiNvbKgztFae PviA== X-Gm-Message-State: AElRT7F05y41xSFzdFyjJuz7dYykOJfZNHHky2THK+gp421UZ77tJAhs LzD0CAHWdvtoNkoOjv3h1Qwqrp0f+84= X-Google-Smtp-Source: AIpwx49OduSUv11ElYnNLDE/XcrICNOMYFe0HE7r1c9xSAmrvEgLSIT+PU2YfF8Ruz1Xb7wZ4mHEZA== X-Received: by 10.223.136.146 with SMTP id f18mr9002005wrf.57.1522395594718; Fri, 30 Mar 2018 00:39:54 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id r28sm4530768wra.78.2018.03.30.00.39.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Mar 2018 00:39:53 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <87tvsysuhc.fsf@tullinup.koldfront.dk> ("Adam \=\?utf-8\?Q\?Sj\?\= \=\?utf-8\?Q\?\=C3\=B8gren\=22's\?\= message of "Thu, 29 Mar 2018 18:43:27 +0200") X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87925 Archived-At: asjo@koldfront.dk (Adam Sj=C3=B8gren) writes: > Robert writes: > >> Yes. Emacs queries the toolkit for the underlying scale factor (on >> GNU/Linux + GTK at least), and is then supposed to use it when >> displaying stuff. > > Ah, ok, it definitely doesn't to that for me. And I was wrong here. For displaying images Emacs works out the scaling factor by looking at the font-width. > Here is a simple test/comparison of what Emacs does by default and what > happens when I have my advice activated: > > $ emacs --no-init-file pics/sad_npm_kitty.png: > > =C2=B7 http://koldfront.dk/misc/gnu-emacs/image-scaling-default.png > > $ emacs pics/sad_npm_kitty.png > > =C2=B7 http://koldfront.dk/misc/gnu-emacs/image-scaling-advice.png > > I may not have GTK set up "correctly", though (I use XMonad and none of > GNOME); this is what I wrote down to remember what I did: > > =C2=B7 https://koldfront.dk/archive/2017/08/13-133749.html > =C2=B7 https://koldfront.dk/archive/2015/10/04-143310.html > > Let me know if there is anything I should check/report. The scaling calculation done by the emacs image code looks correct, but the resulting image is too small when inserted on a HiDPI screen. In fact, looks like emacs is ignoring the scale factor completely even on when using a normal screen. Robert