diff options
author | X-Ryl669 <boite.pour.spam@gmail.com> | 2022-01-24 15:47:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 15:47:47 +0100 |
commit | 923defd6b618babb1b99b2ff7a551be72f7100df (patch) | |
tree | 859b909ad0620c7ba209fe42ac9a0e22c79ae691 /scripts/style_api_gen.py | |
parent | ba083dfd6dc31d1d9127542cd1aff860d5a0153c (diff) | |
download | lvgl-923defd6b618babb1b99b2ff7a551be72f7100df.tar.gz lvgl-923defd6b618babb1b99b2ff7a551be72f7100df.zip |
fix(gradient): general cleanup and fix for alignment issues (#3036)
* Try to fix ASAN behavior
* improve alignments
* fix buffer overflow and various other fixes
* minor fixes
* formatting
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
Diffstat (limited to 'scripts/style_api_gen.py')
-rwxr-xr-x | scripts/style_api_gen.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/style_api_gen.py b/scripts/style_api_gen.py index fec31f3ac..699fbe31b 100755 --- a/scripts/style_api_gen.py +++ b/scripts/style_api_gen.py @@ -120,9 +120,9 @@ props = [ 'style_type': 'num', 'var_type': 'lv_coord_t', 'default':255, 'inherited': 0, 'layout': 0, 'ext_draw': 0, 'dsc': "Set the point from which the background's gradient color should start. 0 means to top/left side, 255 the bottom/right side, 128 the center, and so on"}, -{'name': 'BG_GRADIENT', - 'style_type': 'ptr', 'var_type': 'const lv_gradient_t *', 'default':'`NULL`', 'inherited': 0, 'layout': 0, 'ext_draw': 0, - 'dsc': "Set the gradient definition for the body. The pointed instance must exist while the object is alive. NULL to disable"}, +{'name': 'BG_GRAD', + 'style_type': 'ptr', 'var_type': 'const lv_grad_dsc_t *', 'default':'`NULL`', 'inherited': 0, 'layout': 0, 'ext_draw': 0, + 'dsc': "Set the gradient definition. The pointed instance must exist while the object is alive. NULL to disable. It wraps `BG_GRAD_COLOR`, `BG_GRAD_DIR`, `BG_MAIN_STOP` and `BG_GRAD_STOP` into one descriptor and allows creating gradients with more colors too."}, {'name': 'BG_DITHER_MODE', 'style_type': 'num', 'var_type': 'lv_dither_mode_t', 'default':'`LV_DITHER_NONE`', 'inherited': 0, 'layout': 0, 'ext_draw': 0, |