提交 7733999c 编写于 作者: L liukangcc 提交者: Bernard Xiong

[update] stm32f469 lvgl demo

上级 c4cd52a7
......@@ -169,14 +169,14 @@ void lv_port_disp_init(void)
lvgl_dma_config();
buf_1 = rt_malloc(info.width * 30 * sizeof(lv_color_t));
buf_1 = rt_malloc(info.width * info.height * sizeof(lv_color_t));
if (buf_1 == RT_NULL)
{
LOG_E("malloc memory failed");
return;
}
buf_2 = rt_malloc(info.width * 30 * sizeof(lv_color_t));
buf_2 = rt_malloc(info.width * info.height * sizeof(lv_color_t));
if (buf_2 == RT_NULL)
{
LOG_E("malloc memory failed");
......@@ -184,7 +184,7 @@ void lv_port_disp_init(void)
}
/*Initialize `disp_buf` with the buffer(s).*/
lv_disp_draw_buf_init(&disp_buf, buf_1, buf_2, info.width * 30);
lv_disp_draw_buf_init(&disp_buf, buf_1, buf_2, info.width * info.height);
lv_disp_drv_init(&disp_drv); /*Basic initialization*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册