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:
parent
c95adedc06
commit
1c466369ef
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue