fix(draw_mask): fix wrong draw dispatch calls (#4881)

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
_VIFEXTech 2023-11-27 19:52:33 +08:00 committed by GitHub
parent 1ee89a94c0
commit 4ee7616f35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,7 @@ LV_ATTRIBUTE_FAST_MEM void lv_draw_mask_rect(struct _lv_layer_t * layer, const l
LV_LOG_WARN("Only layers with alpha channel can be masked");
return;
}
LV_PROFILER_BEGIN;
lv_draw_task_t * t = lv_draw_add_task(layer, &layer->buf_area);
@ -65,7 +66,8 @@ LV_ATTRIBUTE_FAST_MEM void lv_draw_mask_rect(struct _lv_layer_t * layer, const l
lv_obj_add_flag(base_dsc->obj, LV_OBJ_FLAG_SEND_DRAW_TASK_EVENTS);
}
lv_draw_dispatch();
lv_draw_finalize_task_creation(layer, t);
LV_PROFILER_END;
}
/**********************