baa71bb1d3a9c64b5648c48c6d2fe5cc67e5b92f
[platform/core/uifw/rive-tizen.git] / script / tizen_build.diff
1 diff --git include/math/aabb.hpp include/math/aabb.hpp
2 index 6e5114e..1824756 100644
3 --- include/math/aabb.hpp
4 +++ include/math/aabb.hpp
5 @@ -15,10 +15,6 @@ namespace rive
6                         float buffer[4];
7                         struct
8                         {
9 -                               Vec2D min, max;
10 -                       };
11 -                       struct
12 -                       {
13                                 float minX, minY, maxX, maxY;
14                         };
15                 };
16 @@ -48,4 +44,4 @@ namespace rive
17                 float perimeter() const;
18         };
19  } // namespace rive
20 -#endif
21 \ No newline at end of file
22 +#endif
23 diff --git src/math/aabb.cpp src/math/aabb.cpp
24 index 94de5d0..a7ea1db 100644
25 --- src/math/aabb.cpp
26 +++ src/math/aabb.cpp
27 @@ -77,9 +77,9 @@ bool AABB::areIdentical(const AABB& a, const AABB& b)
28         return a[0] == b[0] && a[1] == b[1] && a[2] == b[2] && a[3] == b[3];
29  }
30  
31 -float AABB::width() const { return max[0] - min[0]; }
32 +float AABB::width() const { return buffer[2] - buffer[0]; }
33  
34 -float AABB::height() const { return max[1] - min[1]; }
35 +float AABB::height() const { return buffer[3] - buffer[1]; }
36  
37  float AABB::perimeter() const
38  {