[Tizen] Sightly increase damaged rect area align accepted/tizen_unified_x_asan accepted/tizen/unified/20250205.095533 accepted/tizen/unified/20250205.113513 accepted/tizen/unified/x/20250212.043910 accepted/tizen/unified/x/asan/20250211.003607
authorjoogab.yun <joogab.yun@samsung.com>
Tue, 4 Feb 2025 06:19:43 +0000 (15:19 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Tue, 4 Feb 2025 06:19:45 +0000 (15:19 +0900)
This reverts commit addcbcd897c5ea347a14853986634b548280e12d.

Change-Id: I001ca87462841943276958e63a19b73075678835

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

index 3a92d6f6ebc96475ace79cb5bd2f40657deb9bb0..433da1e24633c57c59c6e36ceb5f9cc67deea903 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);