chore(vg_lite): fix macro typo and use it for RAD
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
committed by
Gabor Kiss-Vamosi
parent
9278c42c9b
commit
d0b59cba9b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user