Fix nsgif_get_internal to decode bitmap (similar to r12980)

svn path=/trunk/netsurf/; revision=13018
This commit is contained in:
Chris Young 2011-10-09 11:00:23 +00:00
parent 29d3b4fa00
commit 45ba9d914d

View File

@ -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;
}