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 committed by Mira Grudzinska
parent fe383d44e7
commit c554205238

View file

@ -482,7 +482,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;