From f88494aa2c2f7ad6edb9da5d626b9042db86f6c9 Mon Sep 17 00:00:00 2001 From: ali198724 Date: Fri, 29 May 2020 11:38:26 +0900 Subject: [PATCH] efl_ui_textpath: reduce unneeded matrix calculations Reviewers: woohyun, Hermet, bu5hm4n, zmike Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11904 --- src/lib/elementary/efl_ui_textpath.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/elementary/efl_ui_textpath.c b/src/lib/elementary/efl_ui_textpath.c index 752780ad92..3cb1d96809 100644 --- a/src/lib/elementary/efl_ui_textpath.c +++ b/src/lib/elementary/efl_ui_textpath.c @@ -97,7 +97,6 @@ _segment_draw(Efl_Ui_Textpath_Data *pd, int slice_no, double dt, double dist, double u0, u1, v0, v1; double t; double px, py, px2, py2; - double rad; Eina_Rect r; Eina_Vector2 vec, nvec, vec0, vec1, vec2, vec3; Eina_Matrix2 mat; @@ -107,9 +106,7 @@ _segment_draw(Efl_Ui_Textpath_Data *pd, int slice_no, double dt, double dist, #endif r = efl_gfx_entity_geometry_get(pd->text_obj); - - rad = _deg_to_rad(90); - eina_matrix2_values_set(&mat, cos(rad), -sin(rad), sin(rad), cos(rad)); + eina_matrix2_values_set(&mat, 0.0, -1.0, 1.0, 0.0); eina_bezier_values_get(&bezier, NULL, NULL, NULL, NULL, NULL, NULL, &px2, &py2); t = 0;