mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Fix nsgif_get_internal to decode bitmap (similar to r12980)
svn path=/trunk/netsurf/; revision=13018
This commit is contained in:
parent
29d3b4fa00
commit
45ba9d914d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user