mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-01 00:51:49 +08:00
lv_chart: fix uninitialized variable
This commit is contained in:
@@ -789,6 +789,7 @@ static void lv_chart_draw_vertical_lines(lv_obj_t * chart, const lv_area_t * mas
|
|||||||
p2.x = 0 + x_ofs;
|
p2.x = 0 + x_ofs;
|
||||||
y_tmp = (int32_t)((int32_t) ser->points[0] - ext->ymin) * h;
|
y_tmp = (int32_t)((int32_t) ser->points[0] - ext->ymin) * h;
|
||||||
y_tmp = y_tmp / (ext->ymax - ext->ymin);
|
y_tmp = y_tmp / (ext->ymax - ext->ymin);
|
||||||
|
p1.y = LV_COORD_MIN;
|
||||||
p2.y = h - y_tmp + y_ofs;
|
p2.y = h - y_tmp + y_ofs;
|
||||||
|
|
||||||
if(ext->point_cnt == w)
|
if(ext->point_cnt == w)
|
||||||
|
|||||||
Reference in New Issue
Block a user