arc: do not limit end angle to allow full circle

This commit is contained in:
Gabor Kiss-Vamosi
2020-03-19 09:48:51 +01:00
parent dc0f0e6e5b
commit 2af4f70382
2 changed files with 1 additions and 2 deletions

View File

@@ -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);
return;
}
if(start_angle >= 360) start_angle -= 360;
if(end_angle >= 360) end_angle -= 360;

View File

@@ -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);
if(end > 360) end -= 360;
if(end < 0) end += 360;
/*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);
if(end > 360) end -= 360;
if(end < 0) end += 360;
if(start > 360) start -= 360;