diff options
author | Xiang Xiao <xiaoxiang@xiaomi.com> | 2021-03-26 06:16:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 12:16:57 +0100 |
commit | e153ccd1c1180e3db5e439330eac8464e19cc45e (patch) | |
tree | 76dd4517b76bef82adecbb520153458b1e540b67 /scripts/style_api_gen.py | |
parent | 020c95a308263d1a780d5add481b9721a715a563 (diff) | |
download | lvgl-e153ccd1c1180e3db5e439330eac8464e19cc45e.tar.gz lvgl-e153ccd1c1180e3db5e439330eac8464e19cc45e.zip |
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
Diffstat (limited to 'scripts/style_api_gen.py')
-rwxr-xr-x | scripts/style_api_gen.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/style_api_gen.py b/scripts/style_api_gen.py index 20f593aee..2a00199fd 100755 --- a/scripts/style_api_gen.py +++ b/scripts/style_api_gen.py @@ -10,7 +10,7 @@ props = [ {'name': 'TRANSFORM_ZOOM', 'style_type': 'num', 'var_type': 'lv_coord_t' }, {'name': 'TRANSFORM_ANGLE', 'style_type': 'num', 'var_type': 'lv_coord_t' }, {'name': 'OPA', 'style_type': 'num', 'var_type': 'lv_opa_t' }, -{'name': 'COLOR_FILTER_CB', 'style_type': 'func', 'var_type': 'lv_color_filter_cb_t' }, +{'name': 'COLOR_FILTER_DSC', 'style_type': 'ptr', 'var_type': 'const lv_color_filter_dsc_t *' }, {'name': 'COLOR_FILTER_OPA', 'style_type': 'num', 'var_type': 'lv_opa_t' }, {'name': 'ANIM_TIME', 'style_type': 'num', 'var_type': 'uint32_t' }, {'name': 'TRANSITION', 'style_type': 'ptr', 'var_type': 'const lv_style_transition_dsc_t *' }, @@ -104,9 +104,7 @@ def obj_style_get(p): def get_func_cast(style): func_cast = "" - if style == 'func': - func_cast = "(void (*)(void))" - elif style == 'num': + if style == 'num': func_cast = "(int32_t)" return func_cast |