summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorali198724 <ali198724@gmail.com>2020-05-29 11:38:26 +0900
committerHermet Park <chuneon.park@samsung.com>2020-05-29 11:38:26 +0900
commitf88494aa2c2f7ad6edb9da5d626b9042db86f6c9 (patch)
tree75efb6deac58d3c9b45035bec2da884b5639b000 /src/lib/elementary
parent7c08852ba4e3c9e3d8cfabdaef1bcb9357b85304 (diff)
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
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/efl_ui_textpath.c5
1 files changed, 1 insertions, 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,
97 double u0, u1, v0, v1; 97 double u0, u1, v0, v1;
98 double t; 98 double t;
99 double px, py, px2, py2; 99 double px, py, px2, py2;
100 double rad;
101 Eina_Rect r; 100 Eina_Rect r;
102 Eina_Vector2 vec, nvec, vec0, vec1, vec2, vec3; 101 Eina_Vector2 vec, nvec, vec0, vec1, vec2, vec3;
103 Eina_Matrix2 mat; 102 Eina_Matrix2 mat;
@@ -107,9 +106,7 @@ _segment_draw(Efl_Ui_Textpath_Data *pd, int slice_no, double dt, double dist,
107#endif 106#endif
108 107
109 r = efl_gfx_entity_geometry_get(pd->text_obj); 108 r = efl_gfx_entity_geometry_get(pd->text_obj);
110 109 eina_matrix2_values_set(&mat, 0.0, -1.0, 1.0, 0.0);
111 rad = _deg_to_rad(90);
112 eina_matrix2_values_set(&mat, cos(rad), -sin(rad), sin(rad), cos(rad));
113 110
114 eina_bezier_values_get(&bezier, NULL, NULL, NULL, NULL, NULL, NULL, &px2, &py2); 111 eina_bezier_values_get(&bezier, NULL, NULL, NULL, NULL, NULL, NULL, &px2, &py2);
115 t = 0; 112 t = 0;