fix off-by-one update region calc in map.

SVN revision: 63984
This commit is contained in:
Carsten Haitzler 2011-10-11 11:30:37 +00:00
parent 2c08cfa53c
commit f83bdbc136
1 changed files with 3 additions and 0 deletions

View File

@ -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;