diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-13 22:25:11 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-13 22:25:11 +0000 |
commit | fe7921a387c5a71c8ecba7bb605679b7dab4b86f (patch) | |
tree | d31c249671b3e71f498dd48b6c42b56f1e278f7f /render/favicon.c | |
parent | db2f823e9990cee17b1072ce2296ef88062bc7bd (diff) | |
download | netsurf-fe7921a387c5a71c8ecba7bb605679b7dab4b86f.tar.gz netsurf-fe7921a387c5a71c8ecba7bb605679b7dab4b86f.tar.bz2 |
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
Diffstat (limited to 'render/favicon.c')
-rw-r--r-- | render/favicon.c | 14 |
1 files changed, 11 insertions, 3 deletions
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 <string.h> #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 |