cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=e6722b6ab389be9c9adc8bcba435aed30c3523ee
commit e6722b6ab389be9c9adc8bcba435aed30c3523ee Author: artem.popov <[email protected]> Date: Mon Oct 20 17:27:53 2014 +0200 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 <[email protected]> --- src/lib/evas/canvas/evas_map.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/evas/canvas/evas_map.c b/src/lib/evas/canvas/evas_map.c index 6ddc05a..7b4f577 100644 --- a/src/lib/evas/canvas/evas_map.c +++ b/src/lib/evas/canvas/evas_map.c @@ -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: --
