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
This commit is contained in:
Hermet Park 2019-04-18 19:21:18 +09:00
parent 77a9093af7
commit cb33853ee8
1 changed files with 2 additions and 6 deletions

View File

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