Searched refs:new_delta (Results 1 – 1 of 1) sorted by relevance
/lvgl-3.5.0/src/widgets/ |
D | lv_arc.c | 91 int16_t new_delta = arc->indic_angle_end - start; in lv_arc_set_start_angle() local 94 if(new_delta < 0) new_delta = 360 + new_delta; in lv_arc_set_start_angle() 96 if(LV_ABS(new_delta - old_delta) > 180) lv_obj_invalidate(obj); in lv_arc_set_start_angle() 97 …else if(new_delta < old_delta) inv_arc_area(obj, arc->indic_angle_start, start, LV_PART_INDICATOR); in lv_arc_set_start_angle() 98 …else if(old_delta < new_delta) inv_arc_area(obj, start, arc->indic_angle_start, LV_PART_INDICATOR); in lv_arc_set_start_angle() 114 int16_t new_delta = end - arc->indic_angle_start; in lv_arc_set_end_angle() local 117 if(new_delta < 0) new_delta = 360 + new_delta; in lv_arc_set_end_angle() 119 if(LV_ABS(new_delta - old_delta) > 180) lv_obj_invalidate(obj); in lv_arc_set_end_angle() 120 else if(new_delta < old_delta) inv_arc_area(obj, end, arc->indic_angle_end, LV_PART_INDICATOR); in lv_arc_set_end_angle() 121 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 …]
|