forked from enlightenment/efl
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:
parent
77a9093af7
commit
cb33853ee8
|
@ -1381,12 +1381,8 @@ evas_object_map_update(Evas_Object *eo_obj,
|
||||||
pt->x = (lround(p->x) + x) * FP1;
|
pt->x = (lround(p->x) + x) * FP1;
|
||||||
pt->y = (lround(p->y) + y) * FP1;
|
pt->y = (lround(p->y) + y) * FP1;
|
||||||
pt->z = (lround(p->z) ) * FP1;
|
pt->z = (lround(p->z) ) * FP1;
|
||||||
/* FIXME: Adding the framespace is a workaround for a bug on the EGL
|
pt->fx = p->x + (float) x;
|
||||||
* wayland backend, which does not affect other ports. Remove this when
|
pt->fy = p->y + (float) y;
|
||||||
* 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->fz = p->z;
|
pt->fz = p->z;
|
||||||
if ((uvw == 0) || (imagew == 0)) pt->u = 0;
|
if ((uvw == 0) || (imagew == 0)) pt->u = 0;
|
||||||
else pt->u = ((lround(p->u) * imagew) / uvw) * FP1;
|
else pt->u = ((lround(p->u) * imagew) / uvw) * FP1;
|
||||||
|
|
Loading…
Reference in New Issue