mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
chore(draw): show error for small gradient cache size
This commit is contained in:
parent
774403b3cf
commit
83343f11a1
@ -27,17 +27,9 @@
|
||||
#define ALIGN(X) (((X) + 3) & ~3)
|
||||
#endif
|
||||
|
||||
#define MAX_WIN_RES 1024 /**TODO: Find a way to get this information: max(horz_res, vert_res)*/
|
||||
|
||||
#if _DITHER_GRADIENT
|
||||
#if LV_DITHER_ERROR_DIFFUSION == 1
|
||||
#define LV_DEFAULT_GRAD_CACHE_SIZE sizeof(lv_gradient_cache_t) + MAX_WIN_RES * sizeof(lv_grad_color_t) + MAX_WIN_RES * sizeof(lv_color_t) + MAX_WIN_RES * sizeof(lv_scolor24_t)
|
||||
#else
|
||||
#define LV_DEFAULT_GRAD_CACHE_SIZE sizeof(lv_gradient_cache_t) + MAX_WIN_RES * sizeof(lv_grad_color_t) + MAX_WIN_RES * sizeof(lv_color_t)
|
||||
#endif /* LV_DITHER_ERROR_DIFFUSION */
|
||||
#else
|
||||
#define LV_DEFAULT_GRAD_CACHE_SIZE sizeof(lv_gradient_cache_t) + MAX_WIN_RES * sizeof(lv_grad_color_t)
|
||||
#endif /* _DITHER_GRADIENT */
|
||||
#if LV_GRAD_CACHE_DEF_SIZE != 0 && LV_GRAD_CACHE_DEF_SIZE < 256
|
||||
#error "LV_GRAD_CACHE_DEF_SIZE is too small"
|
||||
#endif
|
||||
|
||||
/**********************
|
||||
* STATIC PROTOTYPES
|
||||
|
Loading…
x
Reference in New Issue
Block a user