Replace * by [] to pass array argument

As discussed on #935 https://github.com/littlevgl/lvgl/issues/935#issuecomment-481550697
This commit is contained in:
Amir Gonnen
2019-05-25 16:43:57 +03:00
parent 6bde219324
commit 2c7cdea1ee
3 changed files with 3 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ lv_obj_t * lv_line_create(lv_obj_t * par, const lv_obj_t * copy)
* so the array can NOT be a local variable which will be destroyed
* @param point_num number of points in 'point_a'
*/
void lv_line_set_points(lv_obj_t * line, const lv_point_t * point_a, uint16_t point_num)
void lv_line_set_points(lv_obj_t * line, const lv_point_t point_a[], uint16_t point_num)
{
lv_line_ext_t * ext = lv_obj_get_ext_attr(line);
ext->point_array = point_a;