diff options
author | Chris Michael <cp.michael@samsung.com> | 2018-11-21 10:43:54 -0500 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2018-11-21 11:25:58 -0500 |
commit | 31a7e545b418734daa41a47162dafff2ede9b192 (patch) | |
tree | 7a2c82fe14fa27090e3c882a85f949402e1fd2e4 | |
parent | b32c39cd58c9851e069edd5977f420aacbadac54 (diff) | |
download | efl-31a7e545b418734daa41a47162dafff2ede9b192.tar.gz |
elementary: Reduce EO calls by using geometry_set
This patch reduces EO calls by using evas_object_geometry_set rather
than calling move & resize.
-rw-r--r-- | src/lib/elementary/efl_ui_tags.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/elementary/efl_ui_tags.c b/src/lib/elementary/efl_ui_tags.c index 9a7a28f8a5..81dc3015d5 100644 --- a/src/lib/elementary/efl_ui_tags.c +++ b/src/lib/elementary/efl_ui_tags.c @@ -877,11 +877,11 @@ _box_layout_cb(Evas_Object *o, linew = ww; } - evas_object_move(obj, - ((!rtl) ? (xx) : (r.x + (r.w - (xx - r.x) - ww))) - + (Evas_Coord)(((double)(ww - ow)) * ax), - yy + (Evas_Coord)(((double)(hh - oh)) * ay)); - evas_object_resize(obj, ow, oh); + evas_object_geometry_set(obj, + ((!rtl) ? (xx) : (r.x + (r.w - (xx - r.x) - ww))) + + (Evas_Coord)(((double)(ww - ow)) * ax), + yy + (Evas_Coord)(((double)(hh - oh)) * ay), + ow, oh); xx += ww; xx += priv->pad.h; |