From 3b915389b517a6e14e2e7566f6e621f93ce6a98c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 3 Feb 2022 00:03:13 -0600 Subject: [PATCH] [draw] Remove unneeded roundf() calls --- src/hb-draw.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-draw.hh b/src/hb-draw.hh index 98b45943e..e073a3f17 100644 --- a/src/hb-draw.hh +++ b/src/hb-draw.hh @@ -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;