Choose right ico image for typical url bar.
svn path=/trunk/netsurf/; revision=12989
This commit is contained in:
parent
f9ca9f3595
commit
ad17f799ea
|
@ -215,7 +215,9 @@ static nserror nsico_clone(const struct content *old, struct content **newc)
|
|||
static void *nsico_get_internal(const struct content *c, void *context)
|
||||
{
|
||||
nsico_content *ico = (nsico_content *) c;
|
||||
struct bmp_image *bmp = ico_find(ico->ico, 255, 255);
|
||||
/* TODO: Pick best size for purpose.
|
||||
* Currently assumes it's for a URL bar. */
|
||||
struct bmp_image *bmp = ico_find(ico->ico, 16, 16);
|
||||
|
||||
if (!bmp->decoded)
|
||||
if (bmp_decode(bmp) != BMP_OK)
|
||||
|
|
Loading…
Reference in New Issue