[Tizen] Sightly increase damaged rect area align accepted/tizen/unified/20241218.085936 accepted/tizen/unified/x/20241218.212027
authorjoogab.yun <joogab.yun@samsung.com>
Tue, 10 Dec 2024 06:05:22 +0000 (15:05 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 17 Dec 2024 05:38:45 +0000 (14:38 +0900)
This reverts commit 90974f41de17c810197a498f26bf5a9bbf13a204.

Change-Id: I35b16621ce2824f513be42173806152e82edb301

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