diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-04-04 10:54:15 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-04-04 10:54:15 +0100 |
commit | 49a2c4374ab846b4d4cce982ea61946ee664628a (patch) | |
tree | 1f3fc2a3c66db880fe9ca371cb2d54dbd3615807 /src | |
parent | cd27d786ddb1a1491ce28788504f4e99870ef955 (diff) | |
download | libnsgif-49a2c4374ab846b4d4cce982ea61946ee664628a.tar.gz libnsgif-49a2c4374ab846b4d4cce982ea61946ee664628a.tar.bz2 |
API: Add function to control handling of small frame delays.
By default we match the mainstream behaviour, and this new
call allows that to be overriden by the client.
Note this only affects animations that are managed by LibNSGIF
via nsgif_frame_prepare().
Diffstat (limited to 'src')
-rw-r--r-- | src/gif.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1450,6 +1450,16 @@ nsgif_error nsgif_create( return NSGIF_OK; } +/* exported function documented in nsgif.h */ +void nsgif_set_frame_delay_behaviour( + nsgif_t *gif, + uint16_t delay_min, + uint16_t delay_default) +{ + gif->delay_min = delay_min; + gif->delay_default = delay_default; +} + /** * Read GIF header. * |