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>
This commit is contained in:
@@ -232,12 +232,12 @@ void lv_style_set_bg_grad_stop(lv_style_t * style, lv_coord_t value)
|
||||
lv_style_set_prop(style, LV_STYLE_BG_GRAD_STOP, v);
|
||||
}
|
||||
|
||||
void lv_style_set_bg_gradient(lv_style_t * style, const lv_gradient_t * value)
|
||||
void lv_style_set_bg_grad(lv_style_t * style, const lv_grad_dsc_t * value)
|
||||
{
|
||||
lv_style_value_t v = {
|
||||
.ptr = value
|
||||
};
|
||||
lv_style_set_prop(style, LV_STYLE_BG_GRADIENT, v);
|
||||
lv_style_set_prop(style, LV_STYLE_BG_GRAD, v);
|
||||
}
|
||||
|
||||
void lv_style_set_bg_dither_mode(lv_style_t * style, lv_dither_mode_t value)
|
||||
|
||||
Reference in New Issue
Block a user