all repos — mgba @ b762ce41a03841fe1e76c072d4c232d452290c8d

mGBA Game Boy Advance Emulator

Only take slow mosaic path when mosiac is actually in play
Jeffrey Pfau jeffrey@endrift.com
Wed, 09 Jul 2014 23:01:03 -0700
commit

b762ce41a03841fe1e76c072d4c232d452290c8d

parent

e6863a6cc540f70480842f1a39271b14c5f14c5b

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

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

@@ -1121,7 +1121,7 @@ outX = renderer->start + tileX * 8 - (inX & 0x7); \

} \ \ uint32_t* pixel = &renderer->row[outX]; \ - if (background->mosaic) { \ + if (background->mosaic && renderer->mosaic.bgH) { \ int mosaicH = renderer->mosaic.bgH + 1; \ int x; \ int mosaicWait = outX % mosaicH; \