From 8329d49b548f292792c1375bbf7fe184fa7b9b5f Mon Sep 17 00:00:00 2001 From: Sergey Date: Wed, 22 Dec 2021 12:30:51 +0300 Subject: [PATCH] Update from 2.0.x Fix lvgl mem size --- Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp b/Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp index 0500bca794..3e41bc3b4e 100644 --- a/Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp +++ b/Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp @@ -147,7 +147,7 @@ void tft_lvgl_init() { lv_init(); - lv_disp_buf_init(&disp_buf, bmp_public_buf, nullptr, LV_HOR_RES_MAX * 14); // Initialize the display buffer + lv_disp_buf_init(&disp_buf, bmp_public_buf, nullptr, (BUF_SIZE_KB*1024)/2); // Initialize the display buffer lv_disp_drv_t disp_drv; // Descriptor of a display driver lv_disp_drv_init(&disp_drv); // Basic initialization