and reduce error more by making coords fp/double.

SVN revision: 56181
This commit is contained in:
Carsten Haitzler 2011-01-16 08:03:28 +00:00
parent 1b89a7ac5f
commit e7b6e7beb4
3 changed files with 7 additions and 10 deletions

View File

@ -2469,9 +2469,9 @@ evas_object_image_render(Evas_Object *obj, void *output, void *context, void *su
// draw geom +x +y
for (; p < p_end; p++, pt++)
{
pt->x = (p->x + x) << FP;
pt->y = (p->y + y) << FP;
pt->z = (p->z) << FP;
pt->x = ((int)p->x + x) << FP;
pt->y = ((int)p->y + y) << FP;
pt->z = ((int)p->z) << FP;
// pt->x3 = p->px << FP;
// pt->y3 = p->py << FP;
pt->fx = p->px;

View File

@ -678,11 +678,9 @@ evas_render_mapped(Evas *e, Evas_Object *obj, void *context, void *surface,
pt = pts;
for (; p < p_end; p++, pt++)
{
pt->x = (p->x + off_x) << FP;
pt->y = (p->y + off_y) << FP;
pt->z = (p->z) << FP;
// pt->x3 = p->px << FP;
// pt->y3 = p->py << FP;
pt->x = (p->x + (double)off_x) * FP1;
pt->y = (p->y + (double)off_y) * FP1;
pt->z = (p->z) * FP1;
pt->fx = p->px;
pt->fy = p->py;
pt->fz = p->z;

View File

@ -358,8 +358,7 @@ struct _Evas_Size_Hints
struct _Evas_Map_Point
{
Evas_Coord x, y, z, px, py;
double fx, fy, fz, fpx, fpy;
double x, y, z, px, py;
double u, v;
unsigned char r, g, b, a;
};