fix drawing of abnormal arcs

This commit is contained in:
Gabor Kiss-Vamosi
2020-05-06 19:37:25 +02:00
parent d6b85d16cf
commit 27621e0945
2 changed files with 18 additions and 11 deletions

View File

@@ -75,6 +75,8 @@ void lv_draw_arc(lv_coord_t center_x, lv_coord_t center_y, uint16_t radius, uin
if(dsc->width == 0) return;
if(start_angle == end_angle) return;
if(dsc->width > radius) dsc->width = radius;
lv_draw_rect_dsc_t cir_dsc;
lv_draw_rect_dsc_init(&cir_dsc);
cir_dsc.radius = LV_RADIUS_CIRCLE;