From 744f443240c385092ac38bf523d0ae3a7d7bcc5f Mon Sep 17 00:00:00 2001 From: Joogab Yun Date: Fri, 25 Sep 2020 16:31:20 +0900 Subject: [PATCH] partial rendering - 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 dali/internal/render/common/render-item.cpp diff --git a/dali/internal/render/common/render-item.cpp b/dali/internal/render/common/render-item.cpp old mode 100644 new mode 100755 index b795530..d0daa83 --- a/dali/internal/render/common/render-item.cpp +++ b/dali/internal/render/common/render-item.cpp @@ -110,8 +110,8 @@ ClippingBox RenderItem::CalculateViewportSpaceAABB( const Vector3& size, const i static_cast( viewportWidth ) * 0.5f - aabb.x, static_cast( 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 ) ); -- 2.7.4