aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorartem.popov <artem.popov@samsung.com>2014-10-20 17:27:53 +0200
committerCedric BAIL <cedric@osg.samsung.com>2014-10-20 17:30:57 +0200
commite6722b6ab389be9c9adc8bcba435aed30c3523ee (patch)
tree8009b8f3be9781afe8e6cfdcc46e2c0f4ff20169 /src
parentecore-drm: Remove useless return (diff)
downloadefl-e6722b6ab389be9c9adc8bcba435aed30c3523ee.tar.gz
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>
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/canvas/evas_map.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_map.c b/src/lib/evas/canvas/evas_map.c
index 6ddc05a202..7b4f5778bb 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: