mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-01 09:51:22 -08:00
(imagemagick_compute_animated_image): Clean up code slightly
This commit is contained in:
parent
10fa0ed328
commit
6f94cbbcb5
1 changed files with 5 additions and 10 deletions
15
src/image.c
15
src/image.c
|
|
@ -7929,20 +7929,15 @@ imagemagick_compute_animated_image (MagickWand *super_wand, int ino)
|
|||
dest = PixelGetNextIteratorRow (dest_iterator, &dest_width);
|
||||
for (x = 0; x < source_width; x++)
|
||||
{
|
||||
if (dispose == BackgroundDispose)
|
||||
/* Normally we only copy over non-transparent pixels,
|
||||
but if the disposal method is "Background", then we
|
||||
copy over all pixels. */
|
||||
if (dispose == BackgroundDispose ||
|
||||
PixelGetAlpha (source[x]))
|
||||
{
|
||||
PixelGetMagickColor (source[x], &pixel);
|
||||
PixelSetMagickColor (dest[x], &pixel);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Copy over non-transparent pixels. */
|
||||
if (PixelGetAlpha (source[x]))
|
||||
{
|
||||
PixelGetMagickColor (source[x], &pixel);
|
||||
PixelSetMagickColor (dest[x], &pixel);
|
||||
}
|
||||
}
|
||||
}
|
||||
PixelSyncIterator(dest_iterator);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue