edje: fix rotation with fixed point.

SVN revision: 69011
This commit is contained in:
Cedric BAIL 2012-03-07 18:21:28 +00:00
parent a0c531cad8
commit 7c4d6fbec8
4 changed files with 8 additions and 5 deletions

View File

@ -386,3 +386,5 @@
2012-03-07 Cedric Bail
* Correctly count and propagate preload signal with GROUP.
* Fix rotation with fixed point.

View File

@ -24,6 +24,7 @@ Improvements:
Fixes:
* Correctly count and propagate preload signal with GROUP.
* Fix rotation with fixed point.
Changes since Edje 1.0.0:
-------------------------

View File

@ -1809,9 +1809,9 @@ _edje_part_recalc_single_map(Edje *ed,
}
params->map.center.z = 0;
params->map.rotation.x = TO_DOUBLE(desc->map.rot.x);
params->map.rotation.y = TO_DOUBLE(desc->map.rot.y);
params->map.rotation.z = TO_DOUBLE(desc->map.rot.z);
params->map.rotation.x = desc->map.rot.x;
params->map.rotation.y = desc->map.rot.y;
params->map.rotation.z = desc->map.rot.z;
if (light)
{
@ -2831,7 +2831,7 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
}
evas_map_util_3d_rotate(map,
pf->map.rotation.x, pf->map.rotation.y, pf->map.rotation.z,
TO_DOUBLE(pf->map.rotation.x), TO_DOUBLE(pf->map.rotation.y), TO_DOUBLE(pf->map.rotation.z),
pf->map.center.x, pf->map.center.y, pf->map.center.z);
// calculate light color & position etc. if there is one

View File

@ -1202,7 +1202,7 @@ struct _Edje_Calc_Params
int x, y, z;
} center; // 12
struct {
double x, y, z;
FLOAT_T x, y, z;
} rotation; // 24
struct {
int x, y, z;