lv_array_resize() function
Resize the array to the given capacity.
Arguments
array
pointer to an `lv_array_t` variable
new_capacity
the new capacity of the array
Notes
if the new capacity is smaller than the current size, the array will be truncated.