From 1be4dcde039293d139eb2ab66522292f6541fd80 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Thu, 4 Jun 2020 09:22:39 +0900 Subject: 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 --- src/lib/efl/interfaces/efl_gfx_path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/efl/interfaces/efl_gfx_path.c b/src/lib/efl/interfaces/efl_gfx_path.c index 18a1733da0..0f69653df9 100644 --- a/src/lib/efl/interfaces/efl_gfx_path.c +++ b/src/lib/efl/interfaces/efl_gfx_path.c @@ -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 -- cgit v1.2.1