> The only problem I can see with this is that (if I remember correctly)
> each GIF frame can have a different duration.

Though I think in practice this is not all that common, though?

> This is easier to
> implement by setting up single add_timeouts as needed rather than 
> repeat_timeouts, but probably run less efficiently.

The fltk timeouts are all inherently one-shot.
On some platforms repeat_timeout is implemented as a simple wrapper for
add_timeout (and even where is is not, it effectively calls add_timeout
with the time reduced by the appropriate elapsed period.)

So your code needs to call [add|repeat]_timeout for every frame anyway.



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to