mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-25 15:48:58 +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
e4834e9190
commit
852ca2a523
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ static bool _setCell(RleWorker& rw, SwPoint pos)
|
||||||
static bool _startCell(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.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.area = 0;
|
||||||
rw.cover = 0;
|
rw.cover = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue