Home
last modified time | relevance | path

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

/lvgl-3.6.0/src/widgets/
Dlv_arc.c95 int16_t old_delta = arc->indic_angle_end - arc->indic_angle_start; in lv_arc_set_start_angle() local
98 if(old_delta < 0) old_delta = 360 + old_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()
118 int16_t old_delta = arc->indic_angle_end - arc->indic_angle_start; in lv_arc_set_end_angle() local
121 if(old_delta < 0) old_delta = 360 + old_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 …]