Merge "partial rendering - When calculating the area, a difference of about 1px...
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 30 Sep 2020 16:24:14 +0000 (16:24 +0000)
committerGerrit Code Review <gerrit@review>
Wed, 30 Sep 2020 16:24:14 +0000 (16:24 +0000)
dali/internal/render/common/render-item.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index b795530..d0daa83
@@ -110,8 +110,8 @@ ClippingBox RenderItem::CalculateViewportSpaceAABB( const Vector3& size, const i
                         static_cast<float>( viewportWidth )  * 0.5f - aabb.x,
                         static_cast<float>( viewportHeight ) * 0.5f - aabb.y );
 
-  int x = static_cast< int >( roundf( aabbInScreen.x ) );
-  int y = static_cast< int >( roundf( aabbInScreen.y ) );
+  int x = static_cast< int >( floor( aabbInScreen.x ) );
+  int y = static_cast< int >( floor( aabbInScreen.y ) );
   int z = static_cast< int >( roundf( aabbInScreen.z ) );
   int w = static_cast< int >( roundf( aabbInScreen.w ) );