chore(vg_lite): fix macro typo and use it for RAD

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Xu Xingliang
2024-01-02 14:05:22 +00:00
committed by Gabor Kiss-Vamosi
parent 9278c42c9b
commit d0b59cba9b
4 changed files with 10 additions and 4 deletions

View File

@@ -444,8 +444,8 @@ void lv_vg_lite_path_append_arc(lv_vg_lite_path_t * path,
return lv_vg_lite_path_append_circle(path, cx, cy, radius, radius);
}
start_angle = (start_angle * MATH_PI) / 180.0f;
sweep = sweep * MATH_PI / 180.0f;
start_angle = MATH_RADIANS(start_angle);
sweep = MATH_RADIANS(sweep);
int n_curves = ceil(MATH_FABSF(sweep / MATH_HALF_PI));
int sweep_sign = (sweep < 0 ? -1 : 1);