From b88a81b9d9570c3219dc924c3dd2b424d99ee4c3 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Thu, 23 Jun 2005 17:22:28 +0000 Subject: [project @ 2005-06-23 17:22:28 by rjw] Allow images to be unloaded to disk or compressed in memory. Provide thumbnails in all tree windows (hotlist, history). Optimise the application initialisation times. Part 1 of 2. svn path=/import/netsurf/; revision=1761 --- image/gif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'image/gif.c') 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); - } -- cgit v1.2.3