Revert "[Tizen] Sightly increase damaged rect area align"
authorANZ1217 <chihun.jeong@samsung.com>
Wed, 4 Dec 2024 06:08:23 +0000 (15:08 +0900)
committerANZ1217 <chihun.jeong@samsung.com>
Wed, 4 Dec 2024 06:08:23 +0000 (15:08 +0900)
This reverts commit dcf382d02d175db20f8a97851016251bdbbaf895.

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

index 9caf165fd29bda0fc04cd471f74fecbc7edcbf80..2df07bdf4d8d7e16d4fd8e2b8607c8c98559a765 100644 (file)
@@ -148,10 +148,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 - 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;
+  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;
 }
 
 DALI_INIT_TRACE_FILTER(gTraceFilter, DALI_TRACE_RENDER_PROCESS, false);