projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
345f7ea
)
efl_ui_textpath: reduce unneeded matrix calculations
author
ali198724
<ali198724@gmail.com>
Fri, 29 May 2020 02:38:26 +0000
(11:38 +0900)
committer
Jongmin Lee
<jm105.lee@samsung.com>
Sun, 31 May 2020 21:34:44 +0000
(06:34 +0900)
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
patch
|
blob
|
history
diff --git
a/src/lib/elementary/efl_ui_textpath.c
b/src/lib/elementary/efl_ui_textpath.c
index 752780ad927ee4419d649f0ca3bde478562b0851..3cb1d9680980b58a5d89ad5fc70e8a5200eae084 100644
(file)
--- 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;