mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13:00 +08:00
Merge branch 'fix/arc-end-angle' into dev-7.0
This commit is contained in:
commit
d0864e72e0
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user