webp: NetSurf bitmap format is RGBA.

Issue a bitmap modified call after conversion, to allow front ends
with different pixel formats to convert.
This commit is contained in:
Michael Drake 2019-12-08 11:30:47 +00:00
parent c95adedc06
commit 1c466369ef
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}