evas: evas_map - fix cast from double to int with using lround()

Summary:
All points in map are double, when try to get point coordinates, there
are issues with rounding.

@fix

Reviewers: Hermet, raster, seoz, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1554

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
artem.popov 2014-10-20 17:27:53 +02:00 committed by Cedric BAIL
parent 845dbaf7da
commit e6722b6ab3
1 changed files with 3 additions and 3 deletions

View File

@ -709,9 +709,9 @@ evas_map_point_coord_get(const Evas_Map *m, int idx, Evas_Coord *x, Evas_Coord *
if (idx >= m->count) goto error;
p = m->points + idx;
if (x) *x = p->x;
if (y) *y = p->y;
if (z) *z = p->z;
if (x) *x = lround(p->x);
if (y) *y = lround(p->y);
if (z) *z = lround(p->z);
return;
error: