emacs-devel
[Top][All Lists]
Advanced

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

Re: GDI+ take 3


From: Eli Zaretskii
Subject: Re: GDI+ take 3
Date: Wed, 15 Apr 2020 18:46:32 +0300

> From: Juanma Barranquero <address@hidden>
> Date: Wed, 15 Apr 2020 17:31:40 +0200
> Cc: address@hidden, Emacs developers <address@hidden>
> 
> > Are the values of delay returned by w32_frame_delay similar to what
> > you get with libgif animation?
> 
> Sorry, I don't understand. With the native animation w32_frame_delay returns 
> 6.
> 
> 253                   status = GdipImageSelectActiveFrame (pBitmap, 
> &pDimensionIDs[0],
> (gdb) n
> 255                   *delay = w32_frame_delay (pBitmap, frame);
> (gdb) n
> 256                   *nframes = frameCount;
> (gdb) p *delay
> $1 = 6

6 is too much, I think.  Are you saying that inside w32_frame_delay,
before division by 100, the value is 600?

> How do I get the equivalent value when using libgif?

Put a breakpoint inside gif_load, here:

      img->lisp_data = list2 (Qextension_data, img->lisp_data);
      if (delay)         <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
        img->lisp_data
          = Fcons (Qdelay,
                   Fcons (make_float (delay / 100.0),
                          img->lisp_data));

and look at the value.



reply via email to

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