mirror of https://github.com/mgba-emu/mgba.git
Only take slow mosaic path when mosiac is actually in play
This commit is contained in:
parent
e6863a6cc5
commit
b762ce41a0
|
@ -1121,7 +1121,7 @@ static inline void _compositeNoBlendNoObjwin(struct GBAVideoSoftwareRenderer* re
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
uint32_t* pixel = &renderer->row[outX]; \
|
uint32_t* pixel = &renderer->row[outX]; \
|
||||||
if (background->mosaic) { \
|
if (background->mosaic && renderer->mosaic.bgH) { \
|
||||||
int mosaicH = renderer->mosaic.bgH + 1; \
|
int mosaicH = renderer->mosaic.bgH + 1; \
|
||||||
int x; \
|
int x; \
|
||||||
int mosaicWait = outX % mosaicH; \
|
int mosaicWait = outX % mosaicH; \
|
||||||
|
|
Loading…
Reference in New Issue