1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

perf(chart): use raw line end on line chart if line_width == 1

This commit is contained in:
Gabor Kiss-Vamosi 2021-03-12 21:42:18 +01:00
parent 93ddf0b8fb
commit ea557d2b4c

View File

@ -695,6 +695,7 @@ static void draw_series_line(lv_obj_t * obj, const lv_area_t * clip_area)
/*Do not bother with line ending is the point will over it*/ /*Do not bother with line ending is the point will over it*/
if(point_size > line_dsc_default.width / 2) line_dsc_default.raw_end = 1; if(point_size > line_dsc_default.width / 2) line_dsc_default.raw_end = 1;
if(line_dsc_default.width == 1) line_dsc_default.raw_end = 1;
/*If there are mire points than pixels draw only vertical lines*/ /*If there are mire points than pixels draw only vertical lines*/
bool crowded_mode = chart->point_cnt >= w ? true : false; bool crowded_mode = chart->point_cnt >= w ? true : false;