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 19:59:11 +0300

> From: Juanma Barranquero <address@hidden>
> Date: Wed, 15 Apr 2020 18:50:05 +0200
> Cc: address@hidden, Emacs developers <address@hidden>
> 
> 220           delay = propertyItem[frame].length / 100.0;
> (gdb) p frame
> $1 = 0
> (gdb) p propertyItem[0].length
> $2 = 600

I think I understand what happens here.  600 = 150 * 4, so the .length
member tells us the size of the array in bytes.

Can you see what is the value of propertyItem[0].type?
I expect it to be 4 or maybe 7, which means the value is a 32-bit
integer.

And if it is indeed 4 or 7, what does this produce:

  (gdb) p ((int *)propertyItem[frame].value)[0]

> After setting w32-use-native-image-API to nil and clearing the cache, 
> 
>  (image-metadata
>   (find-image
>    '((:type gif :file 
> "/path/to/CavernousFeistyArachnid-size_restricted.gif"))))
> 
> =>
> 
> (count 150 delay 0.1 extension-data
>        (249 "^E^@Y" 0 "^A^@^@" 255 "NETSCAPE2.0"))

Yeah, that's what I get as well.  So the delay is 0.1 sec.

Thanks.



reply via email to

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