mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(sw_blend) make sure mask_stride is initialized
This commit is contained in:
parent
980397ac8d
commit
86d4385c95
@ -73,6 +73,7 @@ void lv_draw_sw_blend(lv_draw_unit_t * draw_unit, const lv_draw_sw_blend_dsc_t *
|
||||
fill_dsc.dest_stride = layer_stride_byte;
|
||||
fill_dsc.opa = blend_dsc->opa;
|
||||
fill_dsc.color = blend_dsc->color;
|
||||
fill_dsc.mask_stride = 0;
|
||||
|
||||
if(blend_dsc->mask_buf == NULL) fill_dsc.mask_buf = NULL;
|
||||
else if(blend_dsc->mask_res == LV_DRAW_SW_MASK_RES_FULL_COVER) fill_dsc.mask_buf = NULL;
|
||||
@ -155,7 +156,7 @@ void lv_draw_sw_blend(lv_draw_unit_t * draw_unit, const lv_draw_sw_blend_dsc_t *
|
||||
src_buf += image_dsc.src_stride * (blend_area.y1 - blend_dsc->src_area->y1);
|
||||
src_buf += ((blend_area.x1 - blend_dsc->src_area->x1) * src_px_size) >> 3;
|
||||
image_dsc.src_buf = src_buf;
|
||||
|
||||
image_dsc.mask_stride = 0;
|
||||
|
||||
if(blend_dsc->mask_buf == NULL) image_dsc.mask_buf = NULL;
|
||||
else if(blend_dsc->mask_res == LV_DRAW_SW_MASK_RES_FULL_COVER) image_dsc.mask_buf = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user