[draw] Remove unneeded roundf() calls

This commit is contained in:
Behdad Esfahbod 2022-02-03 00:03:13 -06:00
parent 2bed4f46fb
commit 3b915389b5
1 changed files with 4 additions and 4 deletions

View File

@ -135,10 +135,10 @@ struct draw_helper_t
funcs->quadratic_to (draw_data, control_x, control_y, to_x, to_y);
else
funcs->cubic_to (draw_data,
roundf ((current_x + 2.f * control_x) / 3.f),
roundf ((current_y + 2.f * control_y) / 3.f),
roundf ((to_x + 2.f * control_x) / 3.f),
roundf ((to_y + 2.f * control_y) / 3.f),
(current_x + 2.f * control_x) / 3.f,
(current_y + 2.f * control_y) / 3.f,
(to_x + 2.f * control_x) / 3.f,
(to_y + 2.f * control_y) / 3.f,
to_x, to_y);
current_x = to_x;
current_y = to_y;