forked from enlightenment/efl
* edje: Fix edje drag with fixed point enabled.
SVN revision: 45060
This commit is contained in:
parent
f0fd392e9f
commit
0d6cb5f95e
|
@ -257,13 +257,13 @@ _edje_part_dragable_calc(Edje *ed, Edje_Real_Part *ep, FLOAT_T *x, FLOAT_T *y)
|
||||||
else if (ep->part->dragable.x != 0) ret = 1;
|
else if (ep->part->dragable.x != 0) ret = 1;
|
||||||
else if (ep->part->dragable.y != 0) ret = 2;
|
else if (ep->part->dragable.y != 0) ret = 2;
|
||||||
|
|
||||||
dx = SUB(ep->x, ep->drag->confine_to->x);
|
dx = FROM_INT(ep->x - ep->drag->confine_to->x);
|
||||||
dw = SUB(ep->drag->confine_to->w, ep->w);
|
dw = FROM_INT(ep->drag->confine_to->w - ep->w);
|
||||||
if (dw != ZERO) dx = DIV(dx, dw);
|
if (dw != ZERO) dx = DIV(dx, dw);
|
||||||
else dx = ZERO;
|
else dx = ZERO;
|
||||||
|
|
||||||
dy = SUB(ep->y, ep->drag->confine_to->y);
|
dy = FROM_INT(ep->y - ep->drag->confine_to->y);
|
||||||
dh = SUB(ep->drag->confine_to->h, ep->h);
|
dh = FROM_INT(ep->drag->confine_to->h - ep->h);
|
||||||
if (dh != ZERO) dy = DIV(dy, dh);
|
if (dh != ZERO) dy = DIV(dy, dh);
|
||||||
else dy = ZERO;
|
else dy = ZERO;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue