* image.c (imagemagick_load_image): Make animated pictures work.
There's still some problems with background color settings, though. Fixes: debbugs:14700
This commit is contained in:
parent
14d1e4634c
commit
4ce82fb8d9
2 changed files with 14 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
2013-08-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
* image.c (imagemagick_load_image): Make animated pictures work.
|
||||
There's still some problems with background color settings, though
|
||||
(bug#14700).
|
||||
|
||||
* decompress.c (unwind_decompress): Always restore point.
|
||||
|
||||
2013-08-14 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
|
10
src/image.c
10
src/image.c
|
@ -7967,6 +7967,16 @@ imagemagick_load_image (struct frame *f, struct image *img,
|
|||
goto imagemagick_error;
|
||||
}
|
||||
|
||||
/* If we have an animated image, get the new wand based on the
|
||||
"super-wand". */
|
||||
if (ino > 0)
|
||||
{
|
||||
MagickWand *super_wand = image_wand;
|
||||
MagickSetIteratorIndex (super_wand, ino);
|
||||
image_wand = MagickGetImage (super_wand);
|
||||
DestroyMagickWand (super_wand);
|
||||
}
|
||||
|
||||
/* Retrieve the frame's background color, for use later. */
|
||||
{
|
||||
XColor bgcolor;
|
||||
|
|
Loading…
Add table
Reference in a new issue