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

fix(vector): fix draw image pattern with opacity. (#5330)

Signed-off-by: zhangjipeng <zhangjipeng@xiaomi.com>
Co-authored-by: zhangjipeng <zhangjipeng@xiaomi.com>
This commit is contained in:
Zhang Ji Peng 2024-01-15 17:36:05 +08:00 committed by GitHub
parent 5e62ce3fb4
commit adfd8c2e8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -318,6 +318,7 @@ static void _set_paint_fill_pattern(Tvg_Paint * obj, Tvg_Canvas * canvas, const
tvg_picture_load_raw(img, (uint32_t *)src_buf, header->w, header->h, true);
Tvg_Paint * clip_path = tvg_paint_duplicate(obj);
tvg_paint_set_composite_method(img, clip_path, TVG_COMPOSITE_METHOD_CLIP_PATH);
tvg_paint_set_opacity(img, p->opa);
Tvg_Matrix mtx;
_lv_matrix_to_tvg(&mtx, m);