forked from enlightenment/efl
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:
parent
845dbaf7da
commit
e6722b6ab3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue