Skip to content

Commit

Permalink
Fix horizontal mosaic on sprites (#2084)
Browse files Browse the repository at this point in the history
The code itself is correct, but the variable being read is the Y mosaic
coordinate, not the X coordinate.
  • Loading branch information
AntonioND authored Jul 3, 2024
1 parent 613569a commit 25b5ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GPU2D_Soft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ void SoftRenderer::ApplySpriteMosaicX()

u32* objLine = OBJLine[CurUnit->Num];

u8* curOBJXMosaicTable = MosaicTable[CurUnit->OBJMosaicSize[1]].data();
u8* curOBJXMosaicTable = MosaicTable[CurUnit->OBJMosaicSize[0]].data();

u32 lastcolor = objLine[0];

Expand Down

0 comments on commit 25b5ac9

Please sign in to comment.