Home
last modified time | relevance | path

Searched refs:new_delta (Results 1 – 1 of 1) sorted by relevance

/lvgl-3.6.0/src/widgets/
Dlv_arc.c96 int16_t new_delta = arc->indic_angle_end - start; in lv_arc_set_start_angle() local
99 if(new_delta < 0) new_delta = 360 + new_delta; in lv_arc_set_start_angle()
101 if(LV_ABS(new_delta - old_delta) > 180) lv_obj_invalidate(obj); in lv_arc_set_start_angle()
102 …else if(new_delta < old_delta) inv_arc_area(obj, arc->indic_angle_start, start, LV_PART_INDICATOR); in lv_arc_set_start_angle()
103 …else if(old_delta < new_delta) inv_arc_area(obj, start, arc->indic_angle_start, LV_PART_INDICATOR); in lv_arc_set_start_angle()
119 int16_t new_delta = end - arc->indic_angle_start; in lv_arc_set_end_angle() local
122 if(new_delta < 0) new_delta = 360 + new_delta; in lv_arc_set_end_angle()
124 if(LV_ABS(new_delta - old_delta) > 180) lv_obj_invalidate(obj); in lv_arc_set_end_angle()
125 else if(new_delta < old_delta) inv_arc_area(obj, end, arc->indic_angle_end, LV_PART_INDICATOR); in lv_arc_set_end_angle()
126 else if(old_delta < new_delta) inv_arc_area(obj, arc->indic_angle_end, end, LV_PART_INDICATOR); in lv_arc_set_end_angle()
[all …]