Skip to content

Commit

Permalink
Bugfix: lv_gradient_init_stops() arguments were only changed in the p…
Browse files Browse the repository at this point in the history
…rototype, but not the implementation

Co-authored-by: Liam <30486941+liamHowatt@users.noreply.github.com>
  • Loading branch information
zjanosy and liamHowatt committed May 23, 2024
1 parent 45a4ed4 commit 8924b93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/draw/sw/lv_draw_sw_gradient.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ void lv_gradient_cleanup(lv_grad_t * grad)
lv_free(grad);
}

void lv_gradient_init_stops(lv_grad_dsc_t * grad, const lv_color_t colors[], const uint8_t fracs[],
const lv_opa_t opa[], int num_stops)
void lv_gradient_init_stops(lv_grad_dsc_t * grad, const lv_color_t colors[], const lv_opa_t opa[],
const uint8_t fracs[], int num_stops)
{
LV_ASSERT(num_stops <= LV_GRADIENT_MAX_STOPS);
grad->stops_count = num_stops;
Expand Down

0 comments on commit 8924b93

Please sign in to comment.