1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(thorvg): use premultiplied images in SW render

This commit is contained in:
Gabor Kiss-Vamosi 2024-05-13 18:00:05 +02:00
parent 7addc72735
commit f34ec4b671

View File

@ -293,6 +293,7 @@ static void _set_paint_fill_pattern(Tvg_Paint * obj, Tvg_Canvas * canvas, const
{
lv_image_decoder_dsc_t decoder_dsc;
lv_image_decoder_args_t args = { 0 };
args.premultiply = 1;
lv_result_t res = lv_image_decoder_open(&decoder_dsc, p->src, &args);
if(res != LV_RESULT_OK) {
LV_LOG_ERROR("Failed to open image");