zmike pushed a commit to branch efl-1.22.

http://git.enlightenment.org/core/efl.git/commit/?id=6df5d038dcf009ceb48cd5e39bb7d698c3474a05

commit 6df5d038dcf009ceb48cd5e39bb7d698c3474a05
Author: Hermet Park <[email protected]>
Date:   Thu Apr 18 19:21:18 2019 +0900

    canvas map: remove the workaround code.
    
    Summary:
    the perspective could be handled in the gl backend,
    Here map coordinates don't need to get perspective ones but
    local coordinates instead as it does same to integer coordinates.
    
    I have no idea origin issues exactly,
    but this changed fx, fy values are working correctly in client side.
    
    Reviewers: devilhorns, #committers
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D8563
---
 src/lib/evas/canvas/evas_map.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/lib/evas/canvas/evas_map.c b/src/lib/evas/canvas/evas_map.c
index e633ccd883..1f576fcf84 100644
--- a/src/lib/evas/canvas/evas_map.c
+++ b/src/lib/evas/canvas/evas_map.c
@@ -1381,12 +1381,8 @@ evas_object_map_update(Evas_Object *eo_obj,
         pt->x = (lround(p->x) + x) * FP1;
         pt->y = (lround(p->y) + y) * FP1;
         pt->z = (lround(p->z)    ) * FP1;
-        /* FIXME: Adding the framespace is a workaround for a bug on the EGL
-         * wayland backend, which does not affect other ports. Remove this when
-         * it is correctly handled inside the GL rendering code, which handles
-         * maps with perspective set. */
-        pt->fx = p->px + obj->layer->evas->framespace.x;
-        pt->fy = p->py + obj->layer->evas->framespace.y;
+        pt->fx = p->x + (float) x;
+        pt->fy = p->y + (float) y;
         pt->fz = p->z;
         if ((uvw == 0) || (imagew == 0)) pt->u = 0;
         else pt->u = ((lround(p->u) * imagew) / uvw) * FP1;

-- 


Reply via email to