forked from enlightenment/efl
efl_ui_focus_manager_calc: dont use sqrt
We only need the order, not the exact value
This commit is contained in:
parent
f1a2e0f439
commit
f05249f30b
|
@ -511,7 +511,7 @@ _calculate_node_indirection(Efl_Ui_Focus_Manager_Calc_Data *pd, Efl_Ui_Focus_Obj
|
||||||
//calculate relative position of the nodes
|
//calculate relative position of the nodes
|
||||||
pos = _relative_position_rects(&rect, &op_rect);
|
pos = _relative_position_rects(&rect, &op_rect);
|
||||||
//calculate distance
|
//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)
|
if (outside & outside_dir)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue