discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=69fe80959b1ae2d31342a8ad06f42fef808cc9be

commit 69fe80959b1ae2d31342a8ad06f42fef808cc9be
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Tue Mar 8 13:00:43 2016 -0500

    manually calc bryce center-screen coords
    
    e_comp_object_util_center_pos_get() uses zone useful geometry
---
 src/bin/e_bryce.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/bin/e_bryce.c b/src/bin/e_bryce.c
index 64b8961..296cdb7 100644
--- a/src/bin/e_bryce.c
+++ b/src/bin/e_bryce.c
@@ -127,14 +127,11 @@ _bryce_position(Bryce *b, int w, int h, int *nx, int *ny)
         
         zone = e_comp_zone_number_get(b->zone);
         ox = zone->x, oy = zone->y, ow = zone->w, oh = zone->h;
-        e_comp_object_util_center_pos_get(b->bryce, &x, &y);
      }
    else
-     {
-        evas_object_geometry_get(b->parent, &ox, &oy, &ow, &oh);
-        x = ox + (ow - w) / 2;
-        y = oy + (oh - h) / 2;
-     }
+     evas_object_geometry_get(b->parent, &ox, &oy, &ow, &oh);
+   x = ox + (ow - w) / 2;
+   y = oy + (oh - h) / 2;
    an = e_gadget_site_anchor_get(b->site);
    if (an & E_GADGET_SITE_ANCHOR_LEFT)
      x = ox;

-- 


Reply via email to