From c508b00c24cbcacc3f61fe9985f560afc09eb258 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Fri, 7 Aug 2009 20:35:30 +0000 Subject: [PATCH] evas_object_resize patch to move evas_object_recalc_clippees. This makes evas_object_resize behave more like evas_object_move. NB's added in case this causes glitches in corner cases SVN revision: 41635 --- legacy/evas/src/lib/canvas/evas_object_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/legacy/evas/src/lib/canvas/evas_object_main.c b/legacy/evas/src/lib/canvas/evas_object_main.c index b21302fac6..488bbd7ffd 100644 --- a/legacy/evas/src/lib/canvas/evas_object_main.c +++ b/legacy/evas/src/lib/canvas/evas_object_main.c @@ -511,14 +511,18 @@ evas_object_resize(Evas_Object *obj, Evas_Coord w, Evas_Coord h) obj->layer->evas->pointer.x, obj->layer->evas->pointer.y, 1, 1); } + obj->cur.geometry.w = w; obj->cur.geometry.h = h; //// obj->cur.cache.geometry.validity = 0; evas_object_change(obj); evas_object_clip_dirty(obj); - evas_object_recalc_clippees(obj); + /* NB: evas_object_recalc_clippees was here previously ( < 08/07/2009) */ if (obj->layer->evas->events_frozen <= 0) { + /* NB: If this creates glitches on screen then move to above position */ + evas_object_recalc_clippees(obj); + // if (obj->func->coords_recalc) obj->func->coords_recalc(obj); if (!pass) {