From ea557d2b4c8d07ea87c2b32d408bf6f2d5f8d0ee Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Fri, 12 Mar 2021 21:42:18 +0100 Subject: [PATCH] perf(chart): use raw line end on line chart if line_width == 1 --- src/lv_widgets/lv_chart.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lv_widgets/lv_chart.c b/src/lv_widgets/lv_chart.c index 5869e534a..65920a132 100644 --- a/src/lv_widgets/lv_chart.c +++ b/src/lv_widgets/lv_chart.c @@ -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*/ 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*/ bool crowded_mode = chart->point_cnt >= w ? true : false;