mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-27 11:57:48 +08:00
fix(style) remove designated initializers from lv_style_gen.h
This commit is contained in:
@@ -390,10 +390,7 @@ def style_set(p):
|
|||||||
cast = style_set_cast(p['style_type'])
|
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("static inline void lv_style_set_" + p['name'].lower() +"(lv_style_t * style, "+ p['var_type'] +" value)")
|
||||||
print("{")
|
print("{")
|
||||||
print(" lv_style_value_t v = {")
|
print(" lv_style_set_prop(style, LV_STYLE_" + p['name'] +", *((lv_style_value_t*)&value));")
|
||||||
print(" ." + p['style_type'] +" = " + cast + "value")
|
|
||||||
print(" };")
|
|
||||||
print(" lv_style_set_prop(style, LV_STYLE_" + p['name'] +", v);")
|
|
||||||
print("}")
|
print("}")
|
||||||
print("")
|
print("")
|
||||||
|
|
||||||
|
|||||||
+89
-356
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user