mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix minor issue in arc drawo
This commit is contained in:
parent
883551d50a
commit
d8e921556a
@ -95,7 +95,7 @@ void lv_draw_arc(lv_coord_t center_x, lv_coord_t center_y, uint16_t radius, cons
|
|||||||
if(end_angle > start_angle) {
|
if(end_angle > start_angle) {
|
||||||
angle_gap = 360 - (end_angle - start_angle);
|
angle_gap = 360 - (end_angle - start_angle);
|
||||||
} else {
|
} else {
|
||||||
angle_gap = end_angle - start_angle;
|
angle_gap = start_angle - end_angle;
|
||||||
}
|
}
|
||||||
if(angle_gap > SPLIT_ANGLE_GAP_LIMIT && radius > SPLIT_RADIUS_LIMIT) {
|
if(angle_gap > SPLIT_ANGLE_GAP_LIMIT && radius > SPLIT_RADIUS_LIMIT) {
|
||||||
/*Handle each quarter individually and skip which is empty*/
|
/*Handle each quarter individually and skip which is empty*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user