mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 13:37:02 +03:00
Decoding .ICO for favicons
svn path=/trunk/netsurf/; revision=11488
This commit is contained in:
parent
37d15e2204
commit
d4d749cd10
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user