Fix horizontal mosaic on sprites (#2084)

The code itself is correct, but the variable being read is the Y mosaic
coordinate, not the X coordinate.
This commit is contained in:
Antonio Niño Díaz 2024-07-03 23:24:29 +01:00 committed by GitHub
parent 613569a2ab
commit 25b5ac91bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1507,7 +1507,7 @@ void SoftRenderer::ApplySpriteMosaicX()
u32* objLine = OBJLine[CurUnit->Num]; u32* objLine = OBJLine[CurUnit->Num];
u8* curOBJXMosaicTable = MosaicTable[CurUnit->OBJMosaicSize[1]].data(); u8* curOBJXMosaicTable = MosaicTable[CurUnit->OBJMosaicSize[0]].data();
u32 lastcolor = objLine[0]; u32 lastcolor = objLine[0];