From d4d749cd10a9c2604d697c7c1f4e4e6e26fc3f2b Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Tue, 25 Jan 2011 18:48:28 +0000 Subject: Decoding .ICO for favicons svn path=/trunk/netsurf/; revision=11488 --- cocoa/gui.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cocoa/gui.m') diff --git a/cocoa/gui.m b/cocoa/gui.m index 296d73d31..4797bafd5 100644 --- a/cocoa/gui.m +++ b/cocoa/gui.m @@ -238,6 +238,11 @@ void gui_window_stop_throbber(struct gui_window *g) void gui_window_set_icon(struct gui_window *g, hlcache_handle *icon) { +#ifdef WITH_BMP + if (icon != NULL && content_get_type( icon ) == CONTENT_ICO) + nsico_set_bitmap_from_size( icon, 16, 16 ); +#endif + NSBitmapImageRep *bmp = icon != NULL ? (NSBitmapImageRep *)content_get_bitmap( icon ) : NULL; NSImage *image = nil; -- cgit v1.2.3