From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: "Fix" sag scaling for hidpi Date: Sun, 14 Feb 2021 09:58:33 +0000 Message-ID: References: <871rdkte4f.fsf@gnus.org> <87h7mgqj60.fsf@gnus.org> <31b44f0b-c8a4-284e-835e-89c84e8407d4@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33234"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , Robert Pluim , emacs-devel , monnier@iro.umontreal.ca, Lars Ingebrigtsen , Eli Zaretskii To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 14 10:59:53 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 1lBEC0-0008ZM-Or for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 10:59:52 +0100 Original-Received: from localhost ([::1]:57982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBEBz-0000Zx-Rr for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 04:59:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBEAw-0008Pt-L2 for emacs-devel@gnu.org; Sun, 14 Feb 2021 04:58:46 -0500 Original-Received: from outbound.soverin.net ([2a01:4f8:fff0:2d:8::218]:60057) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBEAt-000832-2z; Sun, 14 Feb 2021 04:58:45 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id DACC0600D0; Sun, 14 Feb 2021 09:58:38 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1613296717; bh=4s/Oafd26IjuUVkvNIV2BkLio7VwD1pCC/70rPvElRk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VYfyBSlS9+ucQwHvLYfD6NUXnTnEp0Saz9+SOu7AKCN3bqRRRI4X34DLqe3dp29ls wImFK1XBW2dEp5rkkYCS/SDrS+UAt8fH0o9+HseXGpDA+7ng4LLxiv/K7BQmNzrkE8 508IjRW5FYbZ79p+Ah+L2kTzO+3Ju556vtdQ5Fe1L+yAE8hduTvsVprJKzzGmRXIaF R30SObQjxk9BQ5Iybtqf/EgwU2bvmDDkrQIeQaHak14GuCY9ugvaIDisOPEt/y2KxB ggMGmCSrvJF9RB5IBtWoGGwXdD2UWWy2S4oHeg3maPo/Q5+cESynk0fKyR2Zo2cdFl 28hsmJDjlkVsQ== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id C8B78202A6E210; Sun, 14 Feb 2021 09:58:33 +0000 (GMT) Mail-Followup-To: Alan Third , Dmitry Gutov , Lars Ingebrigtsen , Yuan Fu , Robert Pluim , Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel Content-Disposition: inline In-Reply-To: <31b44f0b-c8a4-284e-835e-89c84e8407d4@yandex.ru> Received-SPF: pass client-ip=2a01:4f8:fff0:2d:8::218; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-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:264687 Archived-At: On Sun, Feb 14, 2021 at 02:02:52AM +0200, Dmitry Gutov wrote: > On 14.02.2021 01:14, Alan Third wrote: > > On Sun, Feb 14, 2021 at 12:50:26AM +0200, Dmitry Gutov wrote: > > > I noticed the pgtk and the GTK3 builds render them in different size at 2x > > > scaling. Basically, pgtk scales (and renders them kind of fuzzily) and GTK3 > > > does not. I wonder if their rendering could be standardized as well, and > > > whether the same approach could be used to avoid fuzziness. > > > > Really I think we should be providing hi-res, or vector, versions of > > the fringe bitmaps for hi-dpi screens. > > > > I'm not sure if we can just swap in SVG files for the fringe bitmaps > > on systems that support them... Fringe bitmaps are special in some > > way. > > But couldn't we use a non-fuzzy algorithm to scale them, at least as a > fallback? If the bitmap is all 1s an 0s, scaling by 2x could just double the > lattice instead of doing the linear scaling. That depends on the implementation. They don't look fuzzy on NS at 2x scale. I could probably change some settings so they do, but won't. I imagine the PGTK port could be tweaked to draw them with a different scaling algorithm. -- Alan Third