From 852ca2a523d23a337173006efebd92ade4dc35bc Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 11 Mar 2025 14:13:24 +0900 Subject: [PATCH] sw_engine: fix a incorrect rle cell position. All cells that are on the left of the clipping region go to the - 1 horizontal position. issue: https://github.com/thorvg/thorvg/issues/2657 --- src/renderer/sw_engine/tvgSwRle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/sw_engine/tvgSwRle.cpp b/src/renderer/sw_engine/tvgSwRle.cpp index e888d740..8b2141b7 100644 --- a/src/renderer/sw_engine/tvgSwRle.cpp +++ b/src/renderer/sw_engine/tvgSwRle.cpp @@ -465,7 +465,7 @@ static bool _setCell(RleWorker& rw, SwPoint pos) static bool _startCell(RleWorker& rw, SwPoint pos) { if (pos.x > rw.cellMax.x) pos.x = rw.cellMax.x; - if (pos.x < rw.cellMin.x) pos.x = rw.cellMin.x; + if (pos.x < rw.cellMin.x) pos.x = rw.cellMin.x - 1; rw.area = 0; rw.cover = 0;