[Tizen] Sightly increase damaged rect area align accepted/tizen/unified/20250109.175147 accepted/tizen/unified/x/20250110.015320
authorWoochan Lee <wc0917.lee@samsung.com>
Tue, 7 Jan 2025 06:52:18 +0000 (15:52 +0900)
committerWoochan Lee <wc0917.lee@samsung.com>
Tue, 7 Jan 2025 06:52:18 +0000 (15:52 +0900)
This reverts commit a32b0d27c3df69a97cd4681db1066e0c847bfd92.

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

index 971bbb7a44e71c982a793b35233a715f782912aa..0119e8eec99ffbd8920ca42d8a57afc23ea9258a 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);