emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 82c1d15: ; * src/w32image.c (w32_select_active_frame): Comment ab


From: Eli Zaretskii
Subject: master 82c1d15: ; * src/w32image.c (w32_select_active_frame): Comment about GUID values.
Date: Thu, 16 Apr 2020 05:53:48 -0400 (EDT)

branch: master
commit 82c1d150938b38435c0ae9aa921d7c2739ed200c
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    ; * src/w32image.c (w32_select_active_frame): Comment about GUID values.
---
 src/w32image.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/w32image.c b/src/w32image.c
index 80c3247..0a2a55d 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]