mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(decoder_dsc): replace decoder_dsc.header
with decoder_dsc.decoded->header
(#5405)
This commit is contained in:
parent
40b9a8f6ec
commit
cf7ee6feba
@ -126,9 +126,9 @@ void lv_draw_sw_arc(lv_draw_unit_t * draw_unit, const lv_draw_arc_dsc_t * dsc, c
|
||||
lv_image_decoder_open(&decoder_dsc, dsc->img_src, NULL);
|
||||
img_area.x1 = 0;
|
||||
img_area.y1 = 0;
|
||||
img_area.x2 = decoder_dsc.header.w - 1;
|
||||
img_area.y2 = decoder_dsc.header.h - 1;
|
||||
int32_t ofs = decoder_dsc.header.w / 2;
|
||||
img_area.x2 = decoder_dsc.decoded->header.w - 1;
|
||||
img_area.y2 = decoder_dsc.decoded->header.h - 1;
|
||||
int32_t ofs = decoder_dsc.decoded->header.w / 2;
|
||||
lv_area_move(&img_area, dsc->center.x - ofs, dsc->center.y - ofs);
|
||||
blend_dsc.src_area = &img_area;
|
||||
blend_dsc.src_buf = decoder_dsc.decoded->data;
|
||||
|
@ -305,7 +305,7 @@ static void _set_paint_fill_pattern(Tvg_Paint * obj, Tvg_Canvas * canvas, const
|
||||
}
|
||||
|
||||
const uint8_t * src_buf = decoder_dsc.decoded->data;
|
||||
const lv_image_header_t * header = &decoder_dsc.header;
|
||||
const lv_image_header_t * header = &decoder_dsc.decoded->header;
|
||||
lv_color_format_t cf = header->cf;
|
||||
|
||||
if(cf != LV_COLOR_FORMAT_ARGB8888) {
|
||||
|
@ -76,7 +76,7 @@ void lv_draw_vg_lite_img(lv_draw_unit_t * draw_unit, const lv_draw_image_dsc_t *
|
||||
}
|
||||
|
||||
vg_lite_color_t color = 0;
|
||||
if(LV_COLOR_FORMAT_IS_ALPHA_ONLY(decoder_dsc.header.cf) || dsc->recolor_opa > LV_OPA_MIN) {
|
||||
if(LV_COLOR_FORMAT_IS_ALPHA_ONLY(decoder_dsc.decoded->header.cf) || dsc->recolor_opa > LV_OPA_MIN) {
|
||||
/* alpha image and image recolor */
|
||||
src_buf.image_mode = VG_LITE_MULTIPLY_IMAGE_MODE;
|
||||
color = lv_vg_lite_color(dsc->recolor, LV_OPA_MIX2(dsc->opa, dsc->recolor_opa), true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user