mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Optimize affine iteration
This commit is contained in:
parent
328bebbc01
commit
2f237dfb39
|
@ -11,7 +11,7 @@
|
||||||
#define BACKGROUND_BITMAP_ITERATE(W, H) \
|
#define BACKGROUND_BITMAP_ITERATE(W, H) \
|
||||||
x += background->dx; \
|
x += background->dx; \
|
||||||
y += background->dy; \
|
y += background->dy; \
|
||||||
if ((x < 0 || y < 0 || (x >> 8) >= W || (y >> 8) >= H) && !mosaicWait) { \
|
if (((x | y) < 0 || x >= (W << 8) || y >= (H << 8)) && !mosaicWait) { \
|
||||||
continue; \
|
continue; \
|
||||||
} \
|
} \
|
||||||
localX = x; \
|
localX = x; \
|
||||||
|
|
Loading…
Reference in New Issue