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:
parent
93ddf0b8fb
commit
ea557d2b4c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user