mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-18 08:56:24 +08:00
fix(draw): fix 'lv_vector_path_append_arc' not starting with a 'move to' operation. (#7854)
Signed-off-by: zhangjipeng <zhangjipeng@xiaomi.com> Co-authored-by: zhangjipeng <zhangjipeng@xiaomi.com>
This commit is contained in:
@@ -412,6 +412,11 @@ void lv_vector_path_append_arc(lv_vector_path_t * path, const lv_fpoint_t * c, f
|
||||
start.x + cx, start.y + cy
|
||||
});
|
||||
}
|
||||
else {
|
||||
lv_vector_path_move_to(path, &(lv_fpoint_t) {
|
||||
start.x + cx, start.y + cy
|
||||
});
|
||||
}
|
||||
|
||||
for(int i = 0; i < n_curves; ++i) {
|
||||
float end_angle = start_angle + ((i != n_curves - 1) ? MATH_HALF_PI * sweep_sign : fract);
|
||||
|
||||
Reference in New Issue
Block a user