feat(refresh): add LV_USE_REFR_DEBUG

This commit is contained in:
Gabor Kiss-Vamosi
2021-03-19 18:05:33 +01:00
parent d83fa19703
commit c565d4de8a
3 changed files with 13 additions and 3 deletions

View File

@@ -192,6 +192,9 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
* Requires LV_MEM_CUSTOM = 0*/
#define LV_USE_MEM_MONITOR 0
/*1: Draw random colored rectangles over the redrawn areas*/
#define LV_USE_REFR_DEBUG 0
/*Change the built in (v)snprintf functions*/
#define LV_SPRINTF_CUSTOM 0
#if LV_SPRINTF_CUSTOM

View File

@@ -25,8 +25,6 @@
/*********************
* DEFINES
*********************/
/*Draw translucent random colored areas on the invalidated (redrawn) areas*/
#define MASK_AREA_DEBUG 0
/**********************
* TYPEDEFS
@@ -688,7 +686,7 @@ static void lv_refr_obj(lv_obj_t * obj, const lv_area_t * mask_ori_p)
lv_event_send(obj, LV_EVENT_DRAW_MAIN, &obj_ext_mask);
lv_event_send(obj, LV_EVENT_DRAW_MAIN_END, &obj_ext_mask);
#if MASK_AREA_DEBUG
#if LV_USE_REFR_DEBUG
lv_color_t debug_color = lv_color_make(lv_rand(0, 0xFF), lv_rand(0, 0xFF), lv_rand(0, 0xFF));
lv_draw_rect_dsc_t draw_dsc;
lv_draw_rect_dsc_init(&draw_dsc);

View File

@@ -504,6 +504,15 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
# endif
#endif
/*1: Draw random colored rectangles over the redrawn areas*/
#ifndef LV_USE_REFR_DEBUG
# ifdef CONFIG_LV_USE_REFR_DEBUG
# define LV_USE_REFR_DEBUG CONFIG_LV_USE_REFR_DEBUG
# else
# define LV_USE_REFR_DEBUG 0
# endif
#endif
/*Change the built in (v)snprintf functions*/
#ifndef LV_SPRINTF_CUSTOM
# ifdef CONFIG_LV_SPRINTF_CUSTOM