From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: What is the proper way to scale fringe-bitmaps for high-DPI displays? Date: Wed, 20 Mar 2019 17:17:16 -0400 Message-ID: References: <4be02093-6e31-bfde-7d11-5900c7e02668@gmail.com> <83pnqlsb8l.fsf@gnu.org> <59f034d0-3473-0a83-ccf6-1a6fe446964c@gmail.com> <83h8bxs53y.fsf@gnu.org> <83ftrhs3lu.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="239743"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 20 22:19:24 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6icM-0010Ds-7H for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2019 22:19:22 +0100 Original-Received: from localhost ([127.0.0.1]:53315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6icL-0006eX-3w for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2019 17:19:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6iac-0005u0-IH for emacs-devel@gnu.org; Wed, 20 Mar 2019 17:17:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6iaO-0007yD-3D for emacs-devel@gnu.org; Wed, 20 Mar 2019 17:17:27 -0400 Original-Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:44737) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h6iaM-0007v8-Sy; Wed, 20 Mar 2019 17:17:19 -0400 Original-Received: by mail-qk1-x731.google.com with SMTP id m65so7485114qkl.11; Wed, 20 Mar 2019 14:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DVweDz0xpXRYxwUhSUeCdh8zzdf7QLMgdAQ32mgNfLc=; b=oNR5i0IrpsozpMfNi5Xk4mr2cmCOScPP3XDX8XcifN2NVMcrQceLVbC0yNo6QrzepM CrCQROoI0PvU60AqQ98i2qLCvY2bLYR2QFXuke6XXPRixNnxDa08IbQGfSfPKjQtt7C+ tnrIden6/tru5+lf+t+4ikxgEC0h/Dpo2h1//XLVpevI1gk7SUoReWJhPXjaXOUaorv1 CcyEBQKNsA8u2z+eXOel18MjiTpgS2Lv/MP9GWQ6S/Y962shpUy+/ZGsqQy/Fep2KbR2 mcZYr0fWKkd40TrTwThEksEgYP9CbvFEVTtY1gix3Zg0VaXWbEb1J+EZh9PnWRMHX09w tbQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DVweDz0xpXRYxwUhSUeCdh8zzdf7QLMgdAQ32mgNfLc=; b=AlNdx68bVVaBMZCFUUhRPJlkx77rGExTXzSXiJjaFcW/9F7KQ50/awAm9I4bknN9Qz oyMQVWpX+hbHKm4kifonN0pz8jSdRrHNOoYpXOsvI+UXZEGdco6Knb5pnIrtvT2p9CiI A0PC5UCkzSl3KVH1GTL2Yc2BR7K7vYCa/EIFzqULahHXCE/UTwDaY7is+izKhuoehbHK 37wenmWooAIfdPkWf2vek41mMZwvJCs81cL1CDA+fONnT8nFuNqsV0QldLLBafxE42Ze A4gsFiiV9Tg1cjdCClRbjnQf4Wrr8Sv28pzHcwP+/CxR7bAgXlIzFO40eHirKsAwzfU2 VGuw== X-Gm-Message-State: APjAAAXsFBiiIMTGop327kBPM3tQBzo6jmZ/DXh2QPMlGiNiCwiInaZF pGAZyIo7kt8POGjvlEpbaTRcQr2K X-Google-Smtp-Source: APXvYqxn3l1dX/WUWW63l0U38MRpMKcs9GXJiB9+f3v71p0GsQWBJipakPG8yB+etOb/0PUt4yqdAg== X-Received: by 2002:a37:e212:: with SMTP id g18mr8255290qki.152.1553116637743; Wed, 20 Mar 2019 14:17:17 -0700 (PDT) Original-Received: from [128.30.9.213] (30-9-213.wireless.csail.mit.edu. [128.30.9.213]) by smtp.googlemail.com with ESMTPSA id u24sm2046718qku.85.2019.03.20.14.17.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 14:17:16 -0700 (PDT) In-Reply-To: <83ftrhs3lu.fsf@gnu.org> Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::731 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:234427 Archived-At: On 2019-03-20 16:17, Eli Zaretskii wrote: >> Cc: emacs-devel@gnu.org >> From: Clément Pit-Claudel >> Date: Wed, 20 Mar 2019 16:05:48 -0400 >> >>> The frame's parameters is a better way if we think such a parameter >>> will be useful to Lisp programs, and calling a function for that is >>> too much overhead. Otherwise, a simple field of 'struct frame' will >>> be somewhat less hassle, because you don't need to mess with the likes >>> of frame-parameter to teach them about this new parameter. But either >>> way, the job is not hard. >> >> Oh, so Emacs' C code would scale the bitmaps? I expected the Lisp code would do that. > > Fringes are displayed in C. Doing this in Lisp will produce > flickering, I'm afraid. I thought the C code would read the scaling factor and set the bitmap accordingly just once, when creating overlays or applying text properties.