On initialization the screen appears a black line. What's wrong with that

#define LV_HOR_RES_MAX (240)
#define LV_VER_RES_MAX (240)

void lv_port_disp_init(void)
{
/A static or global variable to store the buffers/
static lv_disp_buf_t disp_buf;

/*Static or global buffer(s). The second buffer is optional*/
static lv_color_t buf_1[LV_HOR_RES_MAX * 10]; //
//static lv_color_t buf_2[LV_HOR_RES_MAX * 10];

/*Initialize `disp_buf` with the buffer(s) */
lv_disp_buf_init(&disp_buf, buf_1, NULL, LV_HOR_RES_MAX*10);

//显示驱动默认值初始化 
lv_disp_drv_t disp_drv; 
lv_disp_drv_init(&disp_drv);

/*Set the resolution of the display*/
disp_drv.hor_res = 240;
disp_drv.ver_res = 240;
//注册显示驱动回调
disp_drv.flush_cb = disp_flush;
//注册显示缓冲区
disp_drv.buffer = &disp_buf;

//注册显示驱动到 lvgl 中
lv_disp_drv_register(&disp_drv);

}

static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p)
{

//把指定区域的显示缓冲区内容写入到屏幕
lcd_color_fill(area->x1,area->y1,area->x2,area->y2,(u16_t*)color_p);

//最后必须得调用,通知 lvgl 库你已经 flushing 拷贝完成了
    lv_disp_flush_ready(disp_drv);

}

Initialization flow:

/*lcd init */
lcd_init();
lv_init(); //lvgl 系统初始化
lv_port_disp_init(); //lvgl 显示接口初始化,放在 lv_init()的后面

After initialization, the following interface appears:
1619060578(1)
What is the cause of this?

Looks like a possible off-by-one error in the display driver.