summaryrefslogtreecommitdiff
path: root/image/gif.c
diff options
context:
space:
mode:
Diffstat (limited to 'image/gif.c')
-rw-r--r--image/gif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/image/gif.c b/image/gif.c
index ca77e2b36..4b7fd27ba 100644
--- a/image/gif.c
+++ b/image/gif.c
@@ -106,6 +106,8 @@ bool nsgif_convert(struct content *c, int iwidth, int iheight) {
a plot we get some sensible data
*/
gif_decode_frame(c->data.gif.gif, 0);
+ if (c->data.gif.gif->frame_image)
+ bitmap_modified(c->data.gif.gif->frame_image);
/* Schedule the animation if we have one
*/
@@ -158,10 +160,8 @@ void nsgif_get_frame(struct content *c) {
previous_frame = 0;
else
previous_frame = c->data.gif.gif->decoded_frame + 1;
-
for (frame = previous_frame; frame <= current_frame; frame++)
gif_decode_frame(c->data.gif.gif, frame);
-
}