diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2021-11-02 16:49:51 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2021-11-02 16:49:51 +0000 |
commit | 42cfb0d9a5b4e6dbf0981262916e160be438157b (patch) | |
tree | 7d538aea7b05f2e6edbcb0c2f6df58f01c0bb954 /src/libnsgif.c | |
parent | 6765615f800be363c88f085f7b2ebf1dd3d68b26 (diff) | |
download | libnsgif-42cfb0d9a5b4e6dbf0981262916e160be438157b.tar.gz libnsgif-42cfb0d9a5b4e6dbf0981262916e160be438157b.tar.bz2 |
GIF: Rename frame record/recover functions.
Calling it "previous" frame doesn't really make sense.
Diffstat (limited to 'src/libnsgif.c')
-rw-r--r-- | src/libnsgif.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libnsgif.c b/src/libnsgif.c index 2fd1bd7..80e6c7b 100644 --- a/src/libnsgif.c +++ b/src/libnsgif.c @@ -604,7 +604,7 @@ static gif_result gif_error_from_lzw(lzw_result l_res) return g_res[l_res]; } -static void gif__record_previous_frame(gif_animation *gif) +static void gif__record_frame(gif_animation *gif) { bool need_alloc = gif->prev_frame == NULL; const uint32_t *frame_data; @@ -645,7 +645,7 @@ static void gif__record_previous_frame(gif_animation *gif) gif->prev_index = gif->decoded_frame; } -static gif_result gif__recover_previous_frame(const gif_animation *gif) +static gif_result gif__recover_frame(const gif_animation *gif) { const uint32_t *prev_frame = gif->prev_frame; unsigned height = gif->height < gif->prev_height ? gif->height : gif->prev_height; @@ -1074,7 +1074,7 @@ gif_internal_decode_frame(gif_animation *gif, * If the previous frame's disposal method requires we * restore the previous image, restore our saved image. */ - ret = gif__recover_previous_frame(gif); + ret = gif__recover_frame(gif); if (ret != GIF_OK) { gif__wipe_bitmap(gif, frame_data); } @@ -1083,7 +1083,7 @@ gif_internal_decode_frame(gif_animation *gif, if (frame->disposal_method == GIF_FRAME_RESTORE) { /* Store the previous frame for later restoration */ - gif__record_previous_frame(gif); + gif__record_frame(gif); } gif->decoded_frame = frame_idx; |