refactor(color): UI code cleanup, speed up loading of complex pages (#5031)
This commit is contained in:
+11
-1
@@ -46,10 +46,14 @@
|
||||
*=========================*/
|
||||
|
||||
/*1: use custom malloc/free, 0: use the built-in `lv_mem_alloc()` and `lv_mem_free()`*/
|
||||
#if defined(BOOT)
|
||||
#define LV_MEM_CUSTOM 1
|
||||
#else
|
||||
#define LV_MEM_CUSTOM 0
|
||||
#endif
|
||||
#if LV_MEM_CUSTOM == 0
|
||||
/*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/
|
||||
#define LV_MEM_SIZE (8U * 1024U) /*[bytes]*/
|
||||
#define LV_MEM_SIZE (1024U * 1024U) /*[bytes]*/
|
||||
|
||||
/*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/
|
||||
#define LV_MEM_ADR 0 /*0: unused*/
|
||||
@@ -57,6 +61,8 @@
|
||||
#if LV_MEM_ADR == 0
|
||||
//#define LV_MEM_POOL_INCLUDE your_alloc_library /* Uncomment if using an external allocator*/
|
||||
//#define LV_MEM_POOL_ALLOC your_alloc /* Uncomment if using an external allocator*/
|
||||
#define LV_MEM_POOL_INCLUDE <unistd.h>
|
||||
#define LV_MEM_POOL_ALLOC sbrk
|
||||
#endif
|
||||
|
||||
#else /*LV_MEM_CUSTOM*/
|
||||
@@ -452,7 +458,11 @@
|
||||
#define LV_FONT_FMT_TXT_LARGE 0
|
||||
|
||||
/*Enables/disables support for compressed fonts.*/
|
||||
#if defined(BOOT)
|
||||
#define LV_USE_FONT_COMPRESSED 1
|
||||
#else
|
||||
#define LV_USE_FONT_COMPRESSED 0
|
||||
#endif
|
||||
|
||||
/*Enable subpixel rendering*/
|
||||
#define LV_USE_FONT_SUBPX 0
|
||||
|
||||
Reference in New Issue
Block a user