fix(style_api_gen.py): change lv_color_filter_cb_t to lv_color_filter_dsc_t (#2162)

and update the generated style header files
This commit is contained in:
Xiang Xiao
2021-03-26 06:16:57 -05:00
committed by GitHub
parent 020c95a308
commit e153ccd1c1
3 changed files with 4 additions and 6 deletions

View File

@@ -550,7 +550,7 @@ static inline void lv_obj_set_style_opa(struct _lv_obj_t * obj, uint32_t part, u
static inline void lv_obj_set_style_color_filter_dsc(struct _lv_obj_t * obj, uint32_t part, uint32_t state, const lv_color_filter_dsc_t * value)
{
lv_style_value_t v = {
.ptr = (void *)value
.ptr = value
};
lv_obj_set_local_style_prop(obj, part, state, LV_STYLE_COLOR_FILTER_DSC, v);
}

View File

@@ -57,7 +57,7 @@ static inline void lv_style_set_opa(lv_style_t * style, lv_opa_t value)
static inline void lv_style_set_color_filter_dsc(lv_style_t * style, const lv_color_filter_dsc_t * value)
{
lv_style_value_t v = {
.ptr = (void *)value
.ptr = value
};
lv_style_set_prop(style, LV_STYLE_COLOR_FILTER_DSC, v);
}