summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2017-12-14 11:42:46 +0100
committerMarcel Hollerbach <marcel@osg.samsung.com>2017-12-15 11:31:25 +0100
commitf05249f30b732fc21a6bbd0a4c290760af340bef (patch)
treeadeb6ba47140fececb60cdb60589d25c35248675
parentf1a2e0f4391fa254e2389d343065c414e0ba2933 (diff)
efl_ui_focus_manager_calc: dont use sqrt
We only need the order, not the exact value
-rw-r--r--src/lib/elementary/efl_ui_focus_manager_calc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_focus_manager_calc.c b/src/lib/elementary/efl_ui_focus_manager_calc.c
index b27e3c88ac..5b3b06c852 100644
--- a/src/lib/elementary/efl_ui_focus_manager_calc.c
+++ b/src/lib/elementary/efl_ui_focus_manager_calc.c
@@ -511,7 +511,7 @@ _calculate_node_indirection(Efl_Ui_Focus_Manager_Calc_Data *pd, Efl_Ui_Focus_Obj
511 //calculate relative position of the nodes 511 //calculate relative position of the nodes
512 pos = _relative_position_rects(&rect, &op_rect); 512 pos = _relative_position_rects(&rect, &op_rect);
513 //calculate distance 513 //calculate distance
514 distance = sqrt(pow(pos.x, 2) + pow(pos.y, 2)); 514 distance = pow(pos.x, 2) + pow(pos.y, 2);
515 515
516 if (outside & outside_dir) 516 if (outside & outside_dir)
517 { 517 {