From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56182: 28.1; Display of SVG file with transparent background is incorrect Date: Tue, 12 Sep 2023 17:19:01 +0300 Message-ID: <834jjzpj8q.fsf@gnu.org> References: <82k096lgj5.fsf@gmail.com> <87a6a2s9e2.fsf@gnus.org> <83czexaycd.fsf@gnu.org> <82pmis3a7g.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12502"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pquessev@gmail.com, larsi@gnus.org, 56182@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 12 16:20:28 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qg4Ff-00030o-5b for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Sep 2023 16:20:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qg4FP-0006n1-PM; Tue, 12 Sep 2023 10:20:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qg4FB-0006VV-6R for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 10:19:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qg4FA-0002lm-UR for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 10:19:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qg4FF-0007DX-Iy for bug-gnu-emacs@gnu.org; Tue, 12 Sep 2023 10:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Sep 2023 14:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56182 X-GNU-PR-Package: emacs Original-Received: via spool by 56182-submit@debbugs.gnu.org id=B56182.169452838127712 (code B ref 56182); Tue, 12 Sep 2023 14:20:01 +0000 Original-Received: (at 56182) by debbugs.gnu.org; 12 Sep 2023 14:19:41 +0000 Original-Received: from localhost ([127.0.0.1]:59682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qg4Eu-0007Ct-OQ for submit@debbugs.gnu.org; Tue, 12 Sep 2023 10:19:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qg4Eq-0007Cd-D5 for 56182@debbugs.gnu.org; Tue, 12 Sep 2023 10:19:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qg4Ee-0002fK-UB; Tue, 12 Sep 2023 10:19:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Q0QnRTB0d2zQJbNV0xTsnufk9m19+05CaSxLL2VVIVU=; b=hFHpPfmWKC27 cCq0YVUGp7OfSqDFMy346rKonRBNsuKUL4KalahON6FVBmHvdDh3z2YiG3GnPVpBWBeiOqBV3uL3G GG+Dmc55AmWJjffMdCSDPXPIoJeUeyCAQn3NBrD+JZGx8/ibcXT6TiD+OtmVLrKW6xf2HFQgPHF+t Hh9YFH2TND2DQV3w0uVcxsPmos/hUHeE2vXPwPt/iRisQkPUHytfBOwJy9M9qcSdfkaFgf7O7vTV+ gTr8vBtpNfwy9vkt5Zu31ohXhF++hegJAumDlc1U5r4gSh+1pvlYgBF0eizKljE7EWci0l/GWlXcL gyPBR6xEjqv+DBzJFdzamQ==; In-Reply-To: (message from Alan Third on Mon, 11 Sep 2023 20:10:24 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270180 Archived-At: > Date: Mon, 11 Sep 2023 20:10:24 +0100 > From: Alan Third > > I've checked with the one Windows box I have available to me and it > looks like this is the same there, so I've attached a patch that I > hope will fix this. All it's doing is reversing bytes 1 and 3 (from > the right) of the colours, so when it's used in the SVG code it should > display correctly. > > I can't check it as I don't have a Windows development box. If someone > can confirm that this 1. compiles and 2. fixes the problem that would > be great. > > I found it easy to check by setting the theme to "light blue" and > loading etc/images/down.svg. The correct result should have a black > triangle on a blue background, but incorrect is a black triangle on a > yellow background. Thanks, the patch builds fine on MS-Windows, and it solves the problem, including the recipe in the original message that started this bug. Please install on the emacs-29 branch, and thanks.