efl_ui_focus_manager_calc: dont use sqrt

We only need the order, not the exact value
This commit is contained in:
Marcel Hollerbach 2017-12-14 11:42:46 +01:00
parent f1a2e0f439
commit f05249f30b
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ _calculate_node_indirection(Efl_Ui_Focus_Manager_Calc_Data *pd, Efl_Ui_Focus_Obj
//calculate relative position of the nodes
pos = _relative_position_rects(&rect, &op_rect);
//calculate distance
distance = sqrt(pow(pos.x, 2) + pow(pos.y, 2));
distance = pow(pos.x, 2) + pow(pos.y, 2);
if (outside & outside_dir)
{