From 1e828006aa6f15151b0a0786db79de90de54046a Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 8 Oct 2011 00:18:16 +0000 Subject: Pedantic style fixes svn path=/trunk/netsurf/; revision=12999 --- image/ico.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'image') 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; -- cgit v1.2.3