summaryrefslogtreecommitdiff
path: root/src/w32image.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2020-04-16 12:52:35 +0300
committerEli Zaretskii <eliz@gnu.org>2020-04-16 12:52:35 +0300
commit82c1d150938b38435c0ae9aa921d7c2739ed200c (patch)
tree98c1595336293b81ef96f49f4d4690040309d27e /src/w32image.c
parent490f279c7e05e81bcc07e03c315aead27524f0a7 (diff)
downloademacs-82c1d150938b38435c0ae9aa921d7c2739ed200c.tar.gz
; * src/w32image.c (w32_select_active_frame): Comment about GUID values.
Diffstat (limited to 'src/w32image.c')
-rw-r--r--src/w32image.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/w32image.c b/src/w32image.c
index 80c3247e97d..0a2a55d3f6f 100644
--- a/src/w32image.c
+++ b/src/w32image.c
@@ -283,6 +283,11 @@ w32_select_active_frame (GpBitmap *pBitmap, int frame, int *nframes,
*delay = 0.0;
if (count)
{
+ /* The following call will fill pDimensionIDs[0] with the
+ FrameDimensionTime GUID for GIF images, and
+ FrameDimensionPage GUID for other image types. Multi-page
+ GIF and TIFF images expect these values in the
+ GdipImageSelectActiveFrame call below. */
status = GdipImageGetFrameDimensionsList (pBitmap, pDimensionIDs, 1);
status = GdipImageGetFrameCount (pBitmap, &pDimensionIDs[0], &frameCount);
if (status == Ok && frameCount > 1)