mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Fix regression with mosaic
This commit is contained in:
parent
8774530707
commit
b620ac1af2
|
@ -262,7 +262,7 @@ int GBAVideoSoftwareRendererPreprocessSprite(struct GBAVideoSoftwareRenderer* re
|
|||
int outX = x >= start ? x : start;
|
||||
int condition = x + width;
|
||||
int mosaicH = 1;
|
||||
if (mosaicH > 1) {
|
||||
if (GBAObjAttributesAIsMosaic(sprite->a)) {
|
||||
mosaicH = GBAMosaicControlGetObjH(renderer->mosaic) + 1;
|
||||
if (condition % mosaicH) {
|
||||
condition += mosaicH - (condition % mosaicH);
|
||||
|
|
Loading…
Reference in New Issue