aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2013-08-14 15:50:03 +0200
committerLars Magne Ingebrigtsen2013-08-14 15:50:03 +0200
commit4ce82fb8d9232e123d9e58b00851b775d1586646 (patch)
tree49b9e1940ab9abab07ef7ad6ed9655abfc113395 /src/image.c
parent14d1e4634c80f0ba07181efc3e5b251d3a92e182 (diff)
downloademacs-4ce82fb8d9232e123d9e58b00851b775d1586646.tar.gz
emacs-4ce82fb8d9232e123d9e58b00851b775d1586646.zip
* image.c (imagemagick_load_image): Make animated pictures work.
There's still some problems with background color settings, though. Fixes: debbugs:14700
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c
index d93d1b517bf..b2d6726c1a4 100644
--- a/src/image.c
+++ b/src/image.c
@@ -7967,6 +7967,16 @@ imagemagick_load_image (struct frame *f, struct image *img,
7967 goto imagemagick_error; 7967 goto imagemagick_error;
7968 } 7968 }
7969 7969
7970 /* If we have an animated image, get the new wand based on the
7971 "super-wand". */
7972 if (ino > 0)
7973 {
7974 MagickWand *super_wand = image_wand;
7975 MagickSetIteratorIndex (super_wand, ino);
7976 image_wand = MagickGetImage (super_wand);
7977 DestroyMagickWand (super_wand);
7978 }
7979
7970 /* Retrieve the frame's background color, for use later. */ 7980 /* Retrieve the frame's background color, for use later. */
7971 { 7981 {
7972 XColor bgcolor; 7982 XColor bgcolor;