GBA Video: Optimize affine iteration

This commit is contained in:
Vicki Pfau 2024-01-10 00:34:29 -08:00
parent 328bebbc01
commit 2f237dfb39
1 changed files with 1 additions and 1 deletions

View File

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