summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-07-10 12:40:53 +0900
committerHermet Park <hermetpark@gmail.com>2019-07-10 12:40:53 +0900
commit52a7ae56cd4a0593f91c509eaea141329f7b14fd (patch)
tree1b169c34edcfa929b799b5df891192dbe291c516
parent6f8d88399118546e8c7f49732196fd82aba64aa4 (diff)
efl_ui_textpath: code refactoring.
less symbol calls, no logic changes.
-rw-r--r--src/lib/elementary/efl_ui_textpath.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/elementary/efl_ui_textpath.c b/src/lib/elementary/efl_ui_textpath.c
index 96c02374fd..4d63a0389a 100644
--- a/src/lib/elementary/efl_ui_textpath.c
+++ b/src/lib/elementary/efl_ui_textpath.c
@@ -791,6 +791,8 @@ _efl_ui_textpath_efl_gfx_entity_size_set(Eo *obj, Efl_Ui_Textpath_Data *pd EINA_
791EOLIAN static void 791EOLIAN static void
792_efl_ui_textpath_circle_set(Eo *obj, Efl_Ui_Textpath_Data *pd, double x, double y, double radius, double start_angle, Efl_Ui_Textpath_Direction direction) 792_efl_ui_textpath_circle_set(Eo *obj, Efl_Ui_Textpath_Data *pd, double x, double y, double radius, double start_angle, Efl_Ui_Textpath_Direction direction)
793{ 793{
794 double sweep_length;
795
794 if (pd->circle.x == x && pd->circle.y == y && 796 if (pd->circle.x == x && pd->circle.y == y &&
795 pd->circle.radius == radius && 797 pd->circle.radius == radius &&
796 pd->circle.start_angle == start_angle && 798 pd->circle.start_angle == start_angle &&
@@ -804,17 +806,15 @@ _efl_ui_textpath_circle_set(Eo *obj, Efl_Ui_Textpath_Data *pd, double x, double
804 pd->direction = direction; 806 pd->direction = direction;
805 807
806 efl_gfx_path_reset(obj); 808 efl_gfx_path_reset(obj);
809
807 if (direction == EFL_UI_TEXTPATH_DIRECTION_CW || 810 if (direction == EFL_UI_TEXTPATH_DIRECTION_CW ||
808 direction == EFL_UI_TEXTPATH_DIRECTION_CW_CENTER) 811 direction == EFL_UI_TEXTPATH_DIRECTION_CW_CENTER)
809 { 812 sweep_length = -360;
810 efl_gfx_path_append_arc(obj, x - radius, y - radius, radius * 2,
811 radius * 2, start_angle, -360);
812 }
813 else 813 else
814 { 814 sweep_length = 360;
815 efl_gfx_path_append_arc(obj, x - radius, y - radius, radius * 2, 815
816 radius * 2, start_angle, 360); 816 efl_gfx_path_append_arc(obj, x - radius, y - radius, radius * 2,
817 } 817 radius * 2, start_angle, sweep_length);
818 818
819 _path_data_get(obj, pd); 819 _path_data_get(obj, pd);
820 _path_start_angle_adjust(obj, pd); 820 _path_start_angle_adjust(obj, pd);