arc: do not limit end angle to allow full circle
This commit is contained in:
@@ -94,6 +94,7 @@ void lv_draw_arc(lv_coord_t center_x, lv_coord_t center_y, uint16_t radius, uin
|
|||||||
lv_draw_rect(&area, clip_area, &cir_dsc);
|
lv_draw_rect(&area, clip_area, &cir_dsc);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(start_angle >= 360) start_angle -= 360;
|
if(start_angle >= 360) start_angle -= 360;
|
||||||
if(end_angle >= 360) end_angle -= 360;
|
if(end_angle >= 360) end_angle -= 360;
|
||||||
|
|
||||||
|
|||||||
@@ -165,7 +165,6 @@ void lv_arc_set_end_angle(lv_obj_t * arc, int16_t end)
|
|||||||
|
|
||||||
lv_arc_ext_t * ext = lv_obj_get_ext_attr(arc);
|
lv_arc_ext_t * ext = lv_obj_get_ext_attr(arc);
|
||||||
|
|
||||||
if(end > 360) end -= 360;
|
|
||||||
if(end < 0) end += 360;
|
if(end < 0) end += 360;
|
||||||
|
|
||||||
/*Too large move, the whole arc need to be invalidated anyway*/
|
/*Too large move, the whole arc need to be invalidated anyway*/
|
||||||
@@ -201,7 +200,6 @@ void lv_arc_set_angles(lv_obj_t * arc, int16_t start, int16_t end)
|
|||||||
|
|
||||||
lv_arc_ext_t * ext = lv_obj_get_ext_attr(arc);
|
lv_arc_ext_t * ext = lv_obj_get_ext_attr(arc);
|
||||||
|
|
||||||
if(end > 360) end -= 360;
|
|
||||||
if(end < 0) end += 360;
|
if(end < 0) end += 360;
|
||||||
|
|
||||||
if(start > 360) start -= 360;
|
if(start > 360) start -= 360;
|
||||||
|
|||||||
Reference in New Issue
Block a user