fix(disp): update nuttx disp framebuffer (#4633)

Signed-off-by: YanXiaowei <yanxiaowei@xiaomi.com>
Co-authored-by: YanXiaowei <yanxiaowei@xiaomi.com>
This commit is contained in:
bjsylvia
2023-10-08 13:58:36 +08:00
committed by GitHub
parent a7d03e09ef
commit d9b4283e0e

View File

@@ -153,6 +153,14 @@ static void flush_cb(lv_display_t * disp, const lv_area_t * area, uint8_t * colo
{
lv_nuttx_fb_t * dsc = lv_display_get_driver_data(disp);
/* Skip the non-last flush */
if(!lv_display_flush_is_last(disp)) {
lv_display_flush_ready(disp);
return;
}
if(dsc->mem == NULL ||
area->x2 < 0 || area->y2 < 0 ||
area->x1 > (int32_t)dsc->vinfo.xres - 1 || area->y1 > (int32_t)dsc->vinfo.yres - 1) {