-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dont's squash - gradient updates #7646
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@@ -34,7 +34,7 @@ struct _lv_vector_path_t { | |||
|
|||
struct _lv_vector_gradient_t { | |||
lv_vector_gradient_style_t style; | |||
lv_gradient_stop_t stops[LV_GRADIENT_MAX_STOPS]; /**< A gradient stop array */ | |||
lv_grad_stop_t stops[LV_GRADIENT_MAX_STOPS]; /**< A gradient stop array */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to align with below line.
|
||
#if LV_USE_DRAW_SW_COMPLEX_GRADIENTS | ||
|
||
void lv_grad_linear_init(lv_grad_dsc_t * dsc, int32_t from_x, int32_t from_y, int32_t to_x, int32_t to_y, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should from_x
and from_y
be lv_point_t from
? This way the LV_USE_FLOAT
will also work.
|
||
/** A descriptor of a gradient. */ | ||
typedef struct { | ||
lv_grad_stop_t stops[LV_GRADIENT_MAX_STOPS]; /**< A gradient stop array */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to align with below line.
I recommend trying out
lv_example_grad_2/3/4()
. They are really nice. 😊cc @zjanosy
Notes
lv_conf_template.h
run lv_conf_internal_gen.py and update Kconfig.scripts/code-format.py
(astyle v3.4.12
needs to installed by runningcd scripts; ./install_astyle.sh
) and follow the Code Conventions.