diff options
author | Gabor Kiss-Vamosi <kisvegabor@gmail.com> | 2021-05-31 12:53:04 +0200 |
---|---|---|
committer | Gabor Kiss-Vamosi <kisvegabor@gmail.com> | 2021-05-31 12:53:04 +0200 |
commit | 82b21a98a457ffa28d171cc27435388f87fff52d (patch) | |
tree | 82f634d4094ab32ff9521c2ab9e564f28349e05f /scripts/style_api_gen.py | |
parent | be92f9f7496911b7eeef055fac5da6684c7ca12a (diff) | |
download | lvgl-82b21a98a457ffa28d171cc27435388f87fff52d.tar.gz lvgl-82b21a98a457ffa28d171cc27435388f87fff52d.zip |
fix(style) remove designated initializers from lv_style_gen.h
Diffstat (limited to 'scripts/style_api_gen.py')
-rwxr-xr-x | scripts/style_api_gen.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/style_api_gen.py b/scripts/style_api_gen.py index 308389555..5060b93a4 100755 --- a/scripts/style_api_gen.py +++ b/scripts/style_api_gen.py @@ -390,10 +390,7 @@ def style_set(p): cast = style_set_cast(p['style_type']) print("static inline void lv_style_set_" + p['name'].lower() +"(lv_style_t * style, "+ p['var_type'] +" value)") print("{") - print(" lv_style_value_t v = {") - print(" ." + p['style_type'] +" = " + cast + "value") - print(" };") - print(" lv_style_set_prop(style, LV_STYLE_" + p['name'] +", v);") + print(" lv_style_set_prop(style, LV_STYLE_" + p['name'] +", *((lv_style_value_t*)&value));") print("}") print("") |