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
This commit is contained in:
Hermet Park 2025-03-11 14:13:24 +09:00
parent e4834e9190
commit 852ca2a523

View file

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