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: Wed, 29 Jun 2022 05:26:48 +0300 Message-ID: <83czes6w7r.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="35637"; 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 Wed Jun 29 04:27:58 2022 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 1o6NQr-00096I-PC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 04:27:57 +0200 Original-Received: from localhost ([::1]:34458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6NQq-0007nr-Jc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Jun 2022 22:27:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6NQ0-0007j4-9B for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 22:27:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6NPy-00061P-Ji for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 22:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6NPy-0001MC-9g for bug-gnu-emacs@gnu.org; Tue, 28 Jun 2022 22:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jun 2022 02:27:02 +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.16564696205209 (code B ref 56182); Wed, 29 Jun 2022 02:27:02 +0000 Original-Received: (at 56182) by debbugs.gnu.org; 29 Jun 2022 02:27:00 +0000 Original-Received: from localhost ([127.0.0.1]:56756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6NPw-0001Lw-60 for submit@debbugs.gnu.org; Tue, 28 Jun 2022 22:27:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6NPs-0001Lg-Ak for 56182@debbugs.gnu.org; Tue, 28 Jun 2022 22:26:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6NPl-0005ye-0U; Tue, 28 Jun 2022 22:26:49 -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=SK9WDI6l5vOYX8Gm20AH0HjPbK3q/dBgCYUw3ispeL0=; b=ObSc1kAf4gGK uvHKPXX41Ax0pVBLztV3m2pME5VdZLfeDIEC9bKv4lcJcr4Ny6KZtAyhWA/sr4/y0UWHnAbq8H9wB ZYGFly3GtEIr6qaOGaLOIgmhycJCvlFGJylQJd+npSq6zmCjPaEbRsNVFpQAJH3gj+LYZYOFYQWKk LFdUpkSMr74kL/WyeEHToh03zty9QIfrHpOPuOwqr4zuVtXXFcvVzBIM3vLICDiAJeCXX11Uw4XVF UjrPAUtd18h2iOPAnAcZFkezgw3BSgg0gPKAmObB0rQq5UipHxgOrpKKS715vfWhEhVhbhaDHXYS5 JyG09G0OyFSKeDdU55CpEA==; Original-Received: from [87.69.77.57] (port=3947 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6NPi-0006ZY-Qw; Tue, 28 Jun 2022 22:26:48 -0400 In-Reply-To: (message from Alan Third on Tue, 28 Jun 2022 20:45:17 +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" Xref: news.gmane.io gmane.emacs.bugs:235589 Archived-At: > Date: Tue, 28 Jun 2022 20:45:17 +0100 > From: Alan Third > Cc: Eli Zaretskii , Lars Ingebrigtsen , > 56182@debbugs.gnu.org > > > I don't know why it doesn't work on the W10 computers I work on. I > > don't know if the problem comes from this modificatino either. It > > seems to me that the displayed color is BGR instead of RGB and the > > screen gamma correction is not applied. For what it's worth I managed > > to work around the problem in lisp. With version 27.1 I had > > implemented an advice to improve the taking into account of the > > background color in the style of SVG file. So I extended that advice > > to solve my problem. > > *scratches head* > > Eli, do we need to decode the "unsigned long" colours in a special way > on Windows? It could be I've missed a vital step and am using them > incorrectly. So if the colour is defined in BGR byte order, and I then > use the unsigned long directly in a printf("#%06X", colour) style, > that's likely to be wrong, yes? I don't think I understand what colors you had in mind here. Can you walk me through the relevant code? I'm not sure I will have an answer, but I could at least try things. Thanks.