gastal pushed a commit to branch edje-1.7.

commit c0ee8a98a80e11d04c4aebc872f5f040fde649e2
Author: Jonas Gastal <[email protected]>
Date:   Fri Mar 22 12:08:16 2013 -0300

    Fix CURRENT for moving objects.
---
 src/lib/edje_calc.c    | 8 --------
 src/lib/edje_program.c | 9 ---------
 2 files changed, 17 deletions(-)

diff --git a/src/lib/edje_calc.c b/src/lib/edje_calc.c
index ee070ae..db9ab1d 100644
--- a/src/lib/edje_calc.c
+++ b/src/lib/edje_calc.c
@@ -2691,14 +2691,6 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int 
flags, Edje_Calc_Params *sta
           {
              /* FIXME: except for text, we don't need in that case to recalc 
p1 at all*/
              memcpy(p1, ep->current, sizeof (Edje_Calc_Params));
-             p1->x += ed->x;
-             p1->y += ed->y;
-             p1->map.center.x += ed->x;
-             p1->map.center.y += ed->y;
-             p1->map.light.x += ed->x;
-             p1->map.light.y += ed->y;
-             p1->map.persp.x += ed->x;
-             p1->map.persp.y += ed->y;
           }
 
         p3 = &lp3;
diff --git a/src/lib/edje_program.c b/src/lib/edje_program.c
index 41f287c..a53001e 100644
--- a/src/lib/edje_program.c
+++ b/src/lib/edje_program.c
@@ -512,15 +512,6 @@ _edje_program_run(Edje *ed, Edje_Program *pr, Eina_Bool 
force, const char *ssig,
 
                                  if (rp->current) free(rp->current);
                                  rp->current = tmp;
-
-                                 rp->current->x -= ed->x;
-                                 rp->current->y -= ed->y;
-                                 rp->current->map.center.x -= ed->x;
-                                 rp->current->map.center.y -= ed->y;
-                                 rp->current->map.light.x -= ed->x;
-                                 rp->current->map.light.y -= ed->y;
-                                 rp->current->map.persp.x -= ed->x;
-                                 rp->current->map.persp.y -= ed->y;
                               }
                             else
                               {

-- 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar

Reply via email to