* edje: Fix fixed point use in map.

Note: ep->description_pos is a FLOAT_T.


SVN revision: 46245
This commit is contained in:
Cedric BAIL 2010-02-17 13:21:50 +00:00
parent 698f67609c
commit 06f7da42f9
1 changed files with 15 additions and 15 deletions

View File

@ -2045,18 +2045,18 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags)
}
if ((ep->param2) && (ep->description_pos != ZERO))
{
rx = TO_DOUBLE(ep->param1.description->map.rot.x +
SCALE(ep->description_pos,
rx = TO_DOUBLE(ADD(ep->param1.description->map.rot.x,
MUL(ep->description_pos,
SUB(ep->param2->description->map.rot.x,
ep->param1.description->map.rot.x)));
ry = TO_DOUBLE(ep->param1.description->map.rot.y +
SCALE(ep->description_pos,
ep->param1.description->map.rot.x))));
ry = TO_DOUBLE(ADD(ep->param1.description->map.rot.y,
MUL(ep->description_pos,
SUB(ep->param2->description->map.rot.y,
ep->param1.description->map.rot.y)));
rz = TO_DOUBLE(ep->param1.description->map.rot.z +
SCALE(ep->description_pos,
ep->param1.description->map.rot.y))));
rz = TO_DOUBLE(ADD(ep->param1.description->map.rot.z,
MUL(ep->description_pos,
SUB(ep->param2->description->map.rot.z,
ep->param1.description->map.rot.z)));
ep->param1.description->map.rot.z))));
}
else
{