diff options
author | JunsuChoi <jsuya.choi@samsung.com> | 2020-06-04 09:22:39 +0900 |
---|---|---|
committer | JunsuChoi <jsuya.choi@samsung.com> | 2020-06-04 09:22:39 +0900 |
commit | 1be4dcde039293d139eb2ab66522292f6541fd80 (patch) | |
tree | 1708fb9b8eaae4fbc48723c6159010dd7541b417 | |
parent | 26fa4ea355623fa0b3fc3ee6e09d4856a09b33ff (diff) | |
download | efl-1be4dcde039293d139eb2ab66522292f6541fd80.tar.gz |
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
-rw-r--r-- | src/lib/efl/interfaces/efl_gfx_path.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |