GNU bug report logs - #38109
27.0.50; xpm image scaling doesn't work

Previous Next

Package: emacs;

Reported by: Adam Sjøgren <asjo <at> koldfront.dk>

Date: Thu, 7 Nov 2019 21:12:02 UTC

Severity: normal

Found in version 27.0.50

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


Message #74 received at 38109 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Adam Sjøgren <asjo <at> koldfront.dk>, 38109 <at> debbugs.gnu.org
Subject: Re: bug#38109: Updated Emacs to HEAD, consistently not scaling now
Date: Fri, 8 Nov 2019 23:06:26 +0000
On Fri, Nov 08, 2019 at 10:11:13PM +0100, Lars Ingebrigtsen wrote:
> Alan Third <alan <at> idiocy.org> writes:
> 
> > OK, that makes sense. Check out the comment and code at line 2593 of
> > image.c:
> >
> >     /* FIXME: Do we need to handle all possible bit depths?
> >        XRenderFindStandardFormat supports PictStandardARGB32,
> >        PictStandardRGB24, PictStandardA8, PictStandardA4,
> >        PictStandardA1, and PictStandardNUM (what is this?!).
> >
> >        XRenderFindFormat may support more, but I don't
> >        understand the documentation.  */
> >     format = XRenderFindStandardFormat (display,
> >                                         depth == 32 ? PictStandardARGB32
> >                                         : depth == 24 ? PictStandardRGB24
> >                                         : PictStandardA8);
> >     *picture = XRenderCreatePicture (display, *pixmap, format, 0, &attr);
> 
> But isn't that about the depth of the screen, not the number of bits in
> the image?

Ah, yes, you’re right. Most of the time. Masks use it set to 1.

-- 
Alan Third




This bug report was last modified 5 years and 176 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.