ahhh and if parts are images.. use the right uv coords.

SVN revision: 46384
This commit is contained in:
Carsten Haitzler 2010-02-23 07:56:59 +00:00
parent a952803f13
commit 1ddbe5c5b1
1 changed files with 10 additions and 0 deletions

View File

@ -2036,6 +2036,16 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags)
map = evas_map_new(4);
evas_map_util_points_populate_from_geometry
(map, ed->x + pf->x, ed->y + pf->y, pf->w, pf->h, 0);
if (ep->part->type == EDJE_PART_TYPE_IMAGE)
{
int iw = 1, ih = 1;
evas_object_image_size_get(mo, &iw, &ih);
evas_map_point_image_uv_set(map, 0, 0.0, 0.0);
evas_map_point_image_uv_set(map, 1, iw , 0.0);
evas_map_point_image_uv_set(map, 2, iw , ih );
evas_map_point_image_uv_set(map, 3, 0.0, ih );
}
// default center - center of part
cx = ed->x + pf->x + (pf->w / 2);