[Tizen] partial rendering 36/245236/1
authorJoogab Yun <joogab.yun@samsung.com>
Fri, 25 Sep 2020 07:31:20 +0000 (16:31 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Tue, 6 Oct 2020 01:18:47 +0000 (10:18 +0900)
 - When calculating the area, a difference of about 1px occurs.
   so change roundf to floor

Change-Id: Id07ecd26456288884585ca58bc2d33e4f8bddb7e

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 ) );