GBA Video: Fix regression with mosaic

This commit is contained in:
Jeffrey Pfau 2016-08-13 19:50:53 -07:00
parent 8774530707
commit b620ac1af2
1 changed files with 1 additions and 1 deletions

View File

@ -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);