[Tizen] Sightly increase damaged rect area align accepted/tizen/unified/20241205.173737
authorANZ1217 <chihun.jeong@samsung.com>
Wed, 4 Dec 2024 06:10:50 +0000 (15:10 +0900)
committerANZ1217 <chihun.jeong@samsung.com>
Wed, 4 Dec 2024 06:10:50 +0000 (15:10 +0900)
This reverts commit cf290ba08942f3c97597ce9cc8f4731d0873cfac.

dali/internal/render/common/render-manager.cpp

index 866e3530e4ba19384620ed67e98ad5948bffcdbf..f4dc289eabc2b140bddd5665feddb8213bf6e23b 100644 (file)
@@ -149,10 +149,10 @@ inline void AlignDamagedRect(Rect<int32_t>& rect)
   const int top    = rect.y;
   const int right  = rect.x + rect.width;
   const int bottom = rect.y + rect.height;
-  rect.x           = (left / 16) * 16;
-  rect.y           = (top / 16) * 16;
-  rect.width       = ((right + 16) / 16) * 16 - rect.x;
-  rect.height      = ((bottom + 16) / 16) * 16 - rect.y;
+  rect.x           = (left / 16 - 1) * 16;
+  rect.y           = (top / 16 - 1) * 16;
+  rect.width       = ((right + 15) / 16 + 1) * 16 - rect.x;
+  rect.height      = ((bottom + 15) / 16 + 1) * 16 - rect.y;
 }
 
 DALI_INIT_TRACE_FILTER(gTraceFilter, DALI_TRACE_RENDER_PROCESS, false);