summaryrefslogtreecommitdiff
path: root/image/gif.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2005-06-23 17:22:28 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2005-06-23 17:22:28 +0000
commitb88a81b9d9570c3219dc924c3dd2b424d99ee4c3 (patch)
tree9c82002745ad96d5c7ef88e3824f77b3956254ea /image/gif.c
parentede57892c6ceb1ecc9c75cbc21d22ce92704ebd4 (diff)
downloadnetsurf-b88a81b9d9570c3219dc924c3dd2b424d99ee4c3.tar.gz
netsurf-b88a81b9d9570c3219dc924c3dd2b424d99ee4c3.tar.bz2
[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
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);
-
}