mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
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:
parent
fe383d44e7
commit
c554205238
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue