diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-10-09 11:00:23 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-10-09 11:00:23 +0000 |
commit | 45ba9d914db183931335ddc5dcacff12cb296d41 (patch) | |
tree | 017a1ac115cb0fbe814e386d4a7e264cfecbeadd /image | |
parent | 29d3b4fa0076c879b2372d23c91a990d9421c7f4 (diff) | |
download | netsurf-45ba9d914db183931335ddc5dcacff12cb296d41.tar.gz netsurf-45ba9d914db183931335ddc5dcacff12cb296d41.tar.bz2 |
Fix nsgif_get_internal to decode bitmap (similar to r12980)
svn path=/trunk/netsurf/; revision=13018
Diffstat (limited to 'image')
-rw-r--r-- | image/gif.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/image/gif.c b/image/gif.c index 820b7181a..098287573 100644 --- a/image/gif.c +++ b/image/gif.c @@ -408,6 +408,11 @@ static void *nsgif_get_internal(const struct content *c, void *context) { nsgif_content *gif = (nsgif_content *) c; + if (gif->current_frame != gif->gif->decoded_frame) { + if (nsgif_get_frame(gif) != GIF_OK) + return NULL; + } + return gif->gif->frame_image; } |