forked from enlightenment/efl
evas/smart: Directly access object geometry to improve performance.
There's no need to get the object geometry through evas_object_geometry_get(), since it is not converted anymore (there's no offset).
This commit is contained in:
parent
dbe41f7d56
commit
de0d0dce2e
|
@ -39,10 +39,8 @@ _smart_move_children_relative(Eo *eo_obj, void *_pd EINA_UNUSED, va_list *list)
|
|||
|
||||
if (child->delete_me) continue;
|
||||
if (child->is_static_clip) continue;
|
||||
// TODO: shortcut again, as we are in evas
|
||||
evas_object_geometry_get(child->object, &orig_x, &orig_y, NULL, NULL);
|
||||
// orig_x = child->cur->geometry.x;
|
||||
// orig_y = child->cur->geometry.y;
|
||||
orig_x = child->cur->geometry.x;
|
||||
orig_y = child->cur->geometry.y;
|
||||
evas_object_move(child->object, orig_x + dx, orig_y + dy);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue