mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Remove LV_HOR_RES_MAX from PC guiVDBsize calculation
This commit is contained in:
parent
75142aa6fe
commit
8d8434aeda
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user