cedric pushed a commit to branch master.

commit 131936b64072939df9571b8c89a1e36d82aeda5f
Author: Cedric Bail <[email protected]>
Date:   Mon Apr 8 15:05:58 2013 +0900

    evas: correctly define bounding box in all case.
---
 src/lib/evas/canvas/evas_object_smart.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lib/evas/canvas/evas_object_smart.c 
b/src/lib/evas/canvas/evas_object_smart.c
index 1a95fce..737e8a1 100644
--- a/src/lib/evas/canvas/evas_object_smart.c
+++ b/src/lib/evas/canvas/evas_object_smart.c
@@ -1490,8 +1490,7 @@ evas_object_smart_bounding_box_update(Evas_Object 
*eo_obj, Evas_Object_Protected
 
    os = eo_data_get(eo_obj, MY_CLASS);
 
-   // FIXME: disable optimization and always rebuild the child map for now.
-   /* if (!os->update_boundingbox_needed) return ; */
+   if (!os->update_boundingbox_needed) return ;
    os->update_boundingbox_needed = EINA_FALSE;
 
    minx = obj->layer->evas->output.w;
@@ -1661,7 +1660,7 @@ evas_object_smart_render_post(Evas_Object *eo_obj 
EINA_UNUSED, Evas_Object_Prote
 {
    Evas_Object_Smart *o = eo_data_get(eo_obj, MY_CLASS);
    evas_object_cur_prev(eo_obj);
-   o->cur = o->prev;
+   o->prev = o->cur;
 }
 
 static unsigned int evas_object_smart_id_get(Evas_Object *eo_obj)

-- 

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html

Reply via email to