summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-12-08 11:30:47 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2019-12-08 11:30:47 +0000
commit1c466369ef102d012bb9c8d8ff0a1f346c0627ed (patch)
tree13ed039d25834770789d45d314cd0ea44118bc0a
parentc95adedc06f64b7467786d91314463588213520a (diff)
downloadnetsurf-1c466369ef102d012bb9c8d8ff0a1f346c0627ed.tar.gz
netsurf-1c466369ef102d012bb9c8d8ff0a1f346c0627ed.tar.bz2
webp: NetSurf bitmap format is RGBA.
Issue a bitmap modified call after conversion, to allow front ends with different pixel formats to convert.
-rw-r--r--content/handlers/image/webp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/handlers/image/webp.c b/content/handlers/image/webp.c
index cbcb5ce55..1e20890ef 100644
--- a/content/handlers/image/webp.c
+++ b/content/handlers/image/webp.c
@@ -129,7 +129,7 @@ webp_cache_convert(struct content *c)
rowstride = guit->bitmap->get_rowstride(bitmap);
- decoded = WebPDecodeBGRAInto(source_data,
+ decoded = WebPDecodeRGBAInto(source_data,
source_size,
pixels,
webpfeatures.width * webpfeatures.height * 4,
@@ -140,6 +140,8 @@ webp_cache_convert(struct content *c)
return NULL;
}
+ guit->bitmap->modified(bitmap);
+
return bitmap;
}