Skip to content

Commit

Permalink
Fix a bug that the last frame is not output
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Aug 23, 2020
1 parent 29cf55d commit e6c4298
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,14 @@ int main(int argc, char *argv[])
}

if (settings.last_frame_delay > 0) {
controlgif(gsdata, -1, settings.last_frame_delay / 10, 0, 0);
if (nret != EXIT_FAILURE) {
refresh(&pb, &term);
apply_colormap(&pb, img);
}
delay = settings.last_frame_delay / 10;
if (delay < gif_render_interval)
delay = gif_render_interval;
controlgif(gsdata, -1, delay, 0, 0);
putgif(gsdata, img);
}

Expand Down

0 comments on commit e6c4298

Please sign in to comment.