From e6f33ef6ef8db5edc233aaebe8eb76425701066c Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Fri, 7 Jan 2011 13:09:53 +0000 Subject: Add cheating redraw bypass for gifs, so we can cause animation updates svn path=/trunk/netsurf/; revision=11241 --- image/gif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/image/gif.c b/image/gif.c index 7d5a2dc30..ce2d19a4b 100644 --- a/image/gif.c +++ b/image/gif.c @@ -160,6 +160,8 @@ bool nsgif_redraw(struct content *c, int x, int y, if (nsgif_get_frame(c) != GIF_OK) return false; c->bitmap = c->data.gif.gif->frame_image; + if ((width == -1) && (height == -1)) + return true; return plot.bitmap(x, y, width, height, c->bitmap, background_colour, BITMAPF_NONE); } -- cgit v1.2.3