From fe7921a387c5a71c8ecba7bb605679b7dab4b86f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 13 Feb 2011 22:25:11 +0000 Subject: Pass clip rect as struct through content_redraw api. Update the front ends to use this. Note only RO build tested. svn path=/trunk/netsurf/; revision=11670 --- render/favicon.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'render/favicon.c') diff --git a/render/favicon.c b/render/favicon.c index 097c0c8cc..6bc654e29 100644 --- a/render/favicon.c +++ b/render/favicon.c @@ -20,6 +20,7 @@ #include #include "content/content_protected.h" #include "content/hlcache.h" +#include "desktop/shape.h" #include "render/favicon.h" #include "render/html.h" #include "utils/log.h" @@ -247,10 +248,17 @@ nserror favicon_callback(hlcache_handle *icon, } #ifdef WITH_GIF - if (consider_redraw && (c->data.html.favicon != NULL) && (content_get_type(c->data.html.favicon) == CONTENT_GIF)) { + if (consider_redraw && (c->data.html.favicon != NULL) && + (content_get_type(c->data.html.favicon) == + CONTENT_GIF)) { union content_msg_data msg_data; - /* This is needed in order to cause animated GIFs to update their bitmap */ - content_redraw(c->data.html.favicon, 0, 0, -1, -1, 0, 0, 0, 0, 1.0, 0); + struct rect clip; + /* This is needed in order to cause animated GIFs to update + * their bitmap */ + clip.x0 = clip.y0 = 0; + clip.x1 = clip.y1 = 0; + content_redraw(c->data.html.favicon, 0, 0, -1, -1, &clip, + 1.0, 0); content_broadcast(c, CONTENT_MSG_FAVICON_REFRESH, msg_data); } #endif -- cgit v1.2.3