diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-01-12 22:07:40 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-01-12 22:07:40 +0000 |
commit | 23770014c0915191fe88e11fd72d37a69c1ed2a5 (patch) | |
tree | dc4a4a28885274a82ad9db0afbc3a6d2c8ee87ba /render/favicon.c | |
parent | 9c627479ca30a3aac9fb46ecb68504845984ad24 (diff) | |
download | netsurf-23770014c0915191fe88e11fd72d37a69c1ed2a5.tar.gz netsurf-23770014c0915191fe88e11fd72d37a69c1ed2a5.tar.bz2 |
Check for animating GIF favicon only if compiled with GIF support.
svn path=/trunk/netsurf/; revision=11298
Diffstat (limited to 'render/favicon.c')
-rw-r--r-- | render/favicon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/render/favicon.c b/render/favicon.c index 396373b2d..097c0c8cc 100644 --- a/render/favicon.c +++ b/render/favicon.c @@ -246,12 +246,14 @@ nserror favicon_callback(hlcache_handle *icon, assert(0); } +#ifdef WITH_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); content_broadcast(c, CONTENT_MSG_FAVICON_REFRESH, msg_data); } +#endif if (consider_done && (c->active == 0)) { /* all objects have arrived */ |