mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13:00 +08:00
fix(vg_lite): fix scissor setting error (#6420)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
parent
fd9e901625
commit
cbea72dc01
@ -137,6 +137,7 @@ static void task_draw_cb(void * ctx, const lv_vector_path_t * path, const lv_vec
|
|||||||
vg_lite_matrix_t result;
|
vg_lite_matrix_t result;
|
||||||
if(!lv_vg_lite_matrix_inverse(&result, &matrix)) {
|
if(!lv_vg_lite_matrix_inverse(&result, &matrix)) {
|
||||||
LV_LOG_ERROR("no inverse matrix");
|
LV_LOG_ERROR("no inverse matrix");
|
||||||
|
lv_vg_lite_path_drop(u, lv_vg_path);
|
||||||
LV_PROFILER_END;
|
LV_PROFILER_END;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1030,7 +1030,6 @@ lv_point_precise_t lv_vg_lite_matrix_transform_point(const vg_lite_matrix_t * ma
|
|||||||
|
|
||||||
void lv_vg_lite_set_scissor_area(const lv_area_t * area)
|
void lv_vg_lite_set_scissor_area(const lv_area_t * area)
|
||||||
{
|
{
|
||||||
LV_VG_LITE_CHECK_ERROR(vg_lite_enable_scissor());
|
|
||||||
LV_VG_LITE_CHECK_ERROR(vg_lite_set_scissor(
|
LV_VG_LITE_CHECK_ERROR(vg_lite_set_scissor(
|
||||||
area->x1,
|
area->x1,
|
||||||
area->y1,
|
area->y1,
|
||||||
@ -1040,7 +1039,12 @@ void lv_vg_lite_set_scissor_area(const lv_area_t * area)
|
|||||||
|
|
||||||
void lv_vg_lite_disable_scissor(void)
|
void lv_vg_lite_disable_scissor(void)
|
||||||
{
|
{
|
||||||
LV_VG_LITE_CHECK_ERROR(vg_lite_disable_scissor());
|
/* Restore full screen scissor */
|
||||||
|
LV_VG_LITE_CHECK_ERROR(vg_lite_set_scissor(
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
LV_HOR_RES,
|
||||||
|
LV_VER_RES));
|
||||||
}
|
}
|
||||||
|
|
||||||
void lv_vg_lite_flush(struct _lv_draw_vg_lite_unit_t * u)
|
void lv_vg_lite_flush(struct _lv_draw_vg_lite_unit_t * u)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user