From f83bdbc136c7d5f6d9d316648954117c1ec9c833 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 11 Oct 2011 11:30:37 +0000 Subject: [PATCH] fix off-by-one update region calc in map. SVN revision: 63984 --- legacy/evas/src/lib/canvas/evas_map.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legacy/evas/src/lib/canvas/evas_map.c b/legacy/evas/src/lib/canvas/evas_map.c index 930c0f58c0..3aab66f332 100644 --- a/legacy/evas/src/lib/canvas/evas_map.c +++ b/legacy/evas/src/lib/canvas/evas_map.c @@ -93,6 +93,9 @@ _evas_map_calc_map_geometry(Evas_Object *obj) if (p->y < y1) y1 = p->y; if (p->y > y2) y2 = p->y; } + // add 1 pixel of fuzz around the map region to ensure updates are correct + x1 -= 1; y1 -= 1; + x2 += 1; y2 += 1; if (obj->cur.map->normal_geometry.x != x1) ch = 1; if (obj->cur.map->normal_geometry.y != y1) ch = 1; if (obj->cur.map->normal_geometry.w != (x2 - x1)) ch = 1;