Skip to content

Commit

Permalink
fix(vglite): be sure end_angle > start_angle in arc drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Sep 14, 2023
1 parent 2809440 commit 01cd1fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/draw/nxp/vglite/lv_draw_vglite_arc.c
Expand Up @@ -595,6 +595,8 @@ static void add_split_arc_path(int32_t * arc_path, int * pidx, vg_arc * q_arc, c
static void add_arc_path(int32_t * arc_path, int * pidx, int32_t radius,
int32_t start_angle, int32_t end_angle, const lv_point_t * center, bool cw)
{
if (end_angle < start_angle) end_angle += 360;

/* set number of arcs to draw */
vg_arc q_arc;
int32_t start_arc_angle = start_angle % 90;
Expand Down

0 comments on commit 01cd1fe

Please sign in to comment.