all repos — mgba @ b620ac1af24a01e0f7671598b4c9fba378188744

mGBA Game Boy Advance Emulator

GBA Video: Fix regression with mosaic
Jeffrey Pfau jeffrey@endrift.com
Sat, 13 Aug 2016 19:50:53 -0700
commit

b620ac1af24a01e0f7671598b4c9fba378188744

parent

877453070780b51fb0cec141f985f9d799240da0

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/renderers/software-obj.csrc/gba/renderers/software-obj.c

@@ -262,7 +262,7 @@ } else {

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