diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-12-08 11:30:47 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-12-08 11:30:47 +0000 |
commit | 1c466369ef102d012bb9c8d8ff0a1f346c0627ed (patch) | |
tree | 13ed039d25834770789d45d314cd0ea44118bc0a /content/handlers/image | |
parent | c95adedc06f64b7467786d91314463588213520a (diff) | |
download | netsurf-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.
Diffstat (limited to 'content/handlers/image')
-rw-r--r-- | content/handlers/image/webp.c | 4 |
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; } |