mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(draw_buf): flush D-Cache after clear buffer (#7550)
Signed-off-by: wxd <xaowang96@gmail.com>
This commit is contained in:
parent
2b4d7b0e1c
commit
f27c65bf4a
@ -171,6 +171,7 @@ void lv_draw_buf_clear(lv_draw_buf_t * draw_buf, const lv_area_t * a)
|
|||||||
if(a == NULL) {
|
if(a == NULL) {
|
||||||
uint8_t * buf = lv_draw_buf_goto_xy(draw_buf, 0, 0);
|
uint8_t * buf = lv_draw_buf_goto_xy(draw_buf, 0, 0);
|
||||||
lv_memzero(buf, header->h * stride);
|
lv_memzero(buf, header->h * stride);
|
||||||
|
lv_draw_buf_flush_cache(draw_buf, a);
|
||||||
LV_PROFILER_DRAW_END;
|
LV_PROFILER_DRAW_END;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -205,6 +206,7 @@ void lv_draw_buf_clear(lv_draw_buf_t * draw_buf, const lv_area_t * a)
|
|||||||
lv_memzero(buf, line_length);
|
lv_memzero(buf, line_length);
|
||||||
buf += stride;
|
buf += stride;
|
||||||
}
|
}
|
||||||
|
lv_draw_buf_flush_cache(draw_buf, a);
|
||||||
LV_PROFILER_DRAW_END;
|
LV_PROFILER_DRAW_END;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user