From: Joogab Yun Date: Fri, 25 Sep 2020 07:31:20 +0000 (+0900) Subject: [Tizen] partial rendering X-Git-Tag: accepted/tizen/6.0/unified/20201030.113721~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F36%2F245236%2F1;p=platform%2Fcore%2Fuifw%2Fdali-core.git [Tizen] partial rendering - When calculating the area, a difference of about 1px occurs. so change roundf to floor Change-Id: Id07ecd26456288884585ca58bc2d33e4f8bddb7e --- 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 ) );