From 8d8434aeda96cba4ec9cf9ed5a7f218c0bbfc1e0 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Thu, 22 Jul 2021 18:27:53 +0200 Subject: [PATCH] Remove LV_HOR_RES_MAX from PC guiVDBsize calculation --- src/hasp_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hasp_gui.cpp b/src/hasp_gui.cpp index df3ea338..348b8dff 100644 --- a/src/hasp_gui.cpp +++ b/src/hasp_gui.cpp @@ -150,11 +150,11 @@ void guiSetup() // lv_disp_buf_init(&disp_buf, guiVdbBuffer1, NULL, guiVDBsize); static lv_color_t* guiVdbBuffer1; - const size_t guiVDBsize = 2 * 512u; // 4 KBytes * 2 + const size_t guiVDBsize = 2 * 512u; // 2 KBytes * 2 guiVdbBuffer1 = (lv_color_t*)malloc(sizeof(lv_color_t) * guiVDBsize); #elif defined(WINDOWS) || defined(POSIX) - const size_t guiVDBsize = LV_HOR_RES_MAX * 10; + const size_t guiVDBsize = 1920 * 50; static lv_color_t guiVdbBuffer1[guiVDBsize]; /*Declare a buffer for 10 lines*/ #else