evas/event - add the xy origin to object when coords are transformed

Signed-Off-By: Leandro Dorileo<dorileo@profusioin.mobi>



SVN revision: 79098
This commit is contained in:
ChunEon Park 2012-11-10 12:52:00 +00:00
parent 0d8488a478
commit 1bd3bbfdd3
1 changed files with 5 additions and 3 deletions

View File

@ -22,9 +22,11 @@ _evas_event_havemap_adjust(Evas_Object *eo_obj EINA_UNUSED, Evas_Object_Protecte
if ((!obj->cur.usemap) || (!obj->cur.map) || (!obj->cur.map->count == 4))
return;
evas_map_coords_get(obj->cur.map, *x, *y, x, y, mouse_grabbed);
*x += obj->cur.geometry.x;
*y += obj->cur.geometry.y;
if(evas_map_coords_get(obj->cur.map, *x, *y, x, y, mouse_grabbed))
{
*x += obj->cur.geometry.x;
*y += obj->cur.geometry.y;
}
}
static void