mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-26 19:23:46 +08:00
fix(sw_blend): add null pointer check for mask_area (#7251)
This commit is contained in:
parent
f94b34fff1
commit
f89ac3677e
@ -162,6 +162,7 @@ void lv_draw_sw_blend(lv_draw_unit_t * draw_unit, const lv_draw_sw_blend_dsc_t *
|
||||
else image_dsc.mask_buf = blend_dsc->mask_buf;
|
||||
|
||||
if(image_dsc.mask_buf) {
|
||||
LV_ASSERT_NULL(blend_dsc->mask_area);
|
||||
image_dsc.mask_buf = blend_dsc->mask_buf;
|
||||
image_dsc.mask_stride = blend_dsc->mask_stride ? blend_dsc->mask_stride : lv_area_get_width(blend_dsc->mask_area);
|
||||
image_dsc.mask_buf += image_dsc.mask_stride * (blend_area.y1 - blend_dsc->mask_area->y1) +
|
||||
|
Loading…
Reference in New Issue
Block a user