Searched refs:bg_midpoint (Results 1 – 1 of 1) sorted by relevance
/lvgl-3.6.0/src/widgets/ |
D | lv_arc.c | 211 int16_t bg_midpoint, bg_end = arc->bg_angle_end; in lv_arc_set_mode() local 216 bg_midpoint = (arc->bg_angle_start + bg_end) / 2; in lv_arc_set_mode() 217 lv_arc_set_start_angle(obj, bg_midpoint); in lv_arc_set_mode() 218 lv_arc_set_end_angle(obj, bg_midpoint); in lv_arc_set_mode() 852 int16_t bg_midpoint, range_midpoint, bg_end = arc->bg_angle_end; in value_update() local 858 bg_midpoint = (arc->bg_angle_start + bg_end) / 2; in value_update() 862 … angle = lv_map(arc->value, arc->min_value, range_midpoint, arc->bg_angle_start, bg_midpoint); in value_update() 864 lv_arc_set_end_angle(obj, bg_midpoint); in value_update() 867 angle = lv_map(arc->value, range_midpoint, arc->max_value, bg_midpoint, bg_end); in value_update() 868 lv_arc_set_start_angle(obj, bg_midpoint); in value_update()
|