forked from enlightenment/efl
Efl.Gfx.Path: Modify boundary calculation.
Summary: The point of the path is of type float. The boundary must contain the coordinates of the point, so min_x,y value must be round down and the max value round up. Test Plan: N/A Reviewers: Hermet, herb, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11917
This commit is contained in:
parent
26fa4ea355
commit
1be4dcde03
|
@ -241,7 +241,7 @@ _efl_gfx_path_bounds_get(const Eo *obj EINA_UNUSED, Efl_Gfx_Path_Data *pd, Eina_
|
|||
maxy = maxy > pd->points[i + 1] ? maxy : pd->points[i + 1];
|
||||
}
|
||||
|
||||
EINA_RECTANGLE_SET(r, minx, miny, (maxx - minx), (maxy - miny));
|
||||
EINA_RECTANGLE_SET(r, floor(minx), floor(miny), (ceil(maxx) - floor(minx)), (ceil(maxy) - floor(miny)));
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
|
|
Loading…
Reference in New Issue