Choose right ico image for typical url bar.

svn path=/trunk/netsurf/; revision=12989
This commit is contained in:
Michael Drake 2011-10-07 21:56:17 +00:00
parent f9ca9f3595
commit ad17f799ea
1 changed files with 3 additions and 1 deletions

View File

@ -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)