summaryrefslogtreecommitdiff
path: root/desktop/searchweb.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-01-21 23:48:34 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-01-21 23:48:34 +0000
commit5b0ad574b68b21ceef4ea167163c0a10d1d13d71 (patch)
treebb996417fbab422d5fb262417972f8d7c89b6daf /desktop/searchweb.c
parent3c3536fd68f16ea9f995680fc24919acbffe1022 (diff)
downloadnetsurf-5b0ad574b68b21ceef4ea167163c0a10d1d13d71.tar.gz
netsurf-5b0ad574b68b21ceef4ea167163c0a10d1d13d71.tar.bz2
Fix compilation when BMP/PNG/GIF support is disabled.
svn path=/trunk/netsurf/; revision=9858
Diffstat (limited to 'desktop/searchweb.c')
-rw-r--r--desktop/searchweb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop/searchweb.c b/desktop/searchweb.c
index 69ef10d05..bc0f71ad4 100644
--- a/desktop/searchweb.c
+++ b/desktop/searchweb.c
@@ -270,10 +270,13 @@ void search_web_ico_callback(content_msg msg, struct content *ico,
case CONTENT_MSG_DONE:
LOG(("got favicon '%s'", ico->url));
+#ifdef WITH_BMP
if (ico->type == CONTENT_ICO) {
search_ico = ico; /* cache */
gui_window_set_search_ico(search_ico);
- } else {
+ } else
+#endif
+ {
search_web_retrieve_ico(true);
}
break;