[Tizen] Sightly increase damaged rect area align 22/320522/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 14 Nov 2024 10:32:46 +0000 (19:32 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 18 Nov 2024 05:51:47 +0000 (14:51 +0900)
Change-Id: I8b27225ab493cf91c22a702e6ebaf8e5e5d65f8b
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/render/common/render-manager.cpp

index 2df07bdf4d8d7e16d4fd8e2b8607c8c98559a765..9caf165fd29bda0fc04cd471f74fecbc7edcbf80 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) * 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);