From 05d9226e489d839cb796e81c97c46aad562ced90 Mon Sep 17 00:00:00 2001 From: hermet Date: Fri, 22 Jul 2011 05:24:16 +0000 Subject: [PATCH] evas/evas_object_image - modified to keep the uv consistency with normal evas_object. Although the uv range of normal object is be localized to the it's geometry, but the uv range of the image object is be localized it's image size but not geometry size. In that case, user should find out the objects type and set the uv value differently between normal and image why they do that? git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61577 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/canvas/evas_object_image.c b/src/lib/canvas/evas_object_image.c index 86f370c..7783108 100644 --- a/src/lib/canvas/evas_object_image.c +++ b/src/lib/canvas/evas_object_image.c @@ -2657,8 +2657,8 @@ evas_object_image_render(Evas_Object *obj, void *output, void *context, void *su pt->fx = p->px; pt->fy = p->py; pt->fz = p->z; - pt->u = ((p->u * imagew) / uvw) * FP1; - pt->v = ((p->v * imageh) / uvh) * FP1; + pt->u = ((p->u / obj->cur.geometry.w) * imagew) * FP1; + pt->v = ((p->v / obj->cur.geometry.h) * imageh) * FP1; if (pt->u < 0) pt->u = 0; else if (pt->u > (imagew * FP1)) pt->u = (imagew * FP1); if (pt->v < 0) pt->v = 0; -- 2.7.4