jsuya pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1be4dcde039293d139eb2ab66522292f6541fd80

commit 1be4dcde039293d139eb2ab66522292f6541fd80
Author: JunsuChoi <[email protected]>
Date:   Thu Jun 4 09:22:39 2020 +0900

    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

-- 


Reply via email to