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:
parent
7addc72735
commit
f34ec4b671
@ -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_dsc_t decoder_dsc;
|
||||||
lv_image_decoder_args_t args = { 0 };
|
lv_image_decoder_args_t args = { 0 };
|
||||||
|
args.premultiply = 1;
|
||||||
lv_result_t res = lv_image_decoder_open(&decoder_dsc, p->src, &args);
|
lv_result_t res = lv_image_decoder_open(&decoder_dsc, p->src, &args);
|
||||||
if(res != LV_RESULT_OK) {
|
if(res != LV_RESULT_OK) {
|
||||||
LV_LOG_ERROR("Failed to open image");
|
LV_LOG_ERROR("Failed to open image");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user