diff options
Diffstat (limited to 'image/ico.c')
-rw-r--r-- | image/ico.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/image/ico.c b/image/ico.c index ab5d131d9..88579df34 100644 --- a/image/ico.c +++ b/image/ico.c @@ -153,9 +153,10 @@ static bool nsico_redraw(struct content *c, struct content_redraw_data *data, struct bmp_image *bmp = ico_find(ico->ico, data->width, data->height); bitmap_flags_t flags = BITMAPF_NONE; - if (!bmp->decoded) + if (bmp->decoded == false) { if (bmp_decode(bmp) != BMP_OK) return false; + } ico->bitmap = bmp->bitmap; @@ -219,9 +220,10 @@ static void *nsico_get_internal(const struct content *c, void *context) * Currently assumes it's for a URL bar. */ struct bmp_image *bmp = ico_find(ico->ico, 16, 16); - if (!bmp->decoded) + if (bmp->decoded == false) { if (bmp_decode(bmp) != BMP_OK) return NULL; + } ico->bitmap = bmp->bitmap; |