Optimize range check in mode 2 rendering

This commit is contained in:
Jeffrey Pfau 2013-11-05 01:21:13 -08:00
parent 53515b41cd
commit 9253eeba23
1 changed files with 1 additions and 1 deletions

View File

@ -1056,7 +1056,7 @@ static void _drawBackgroundMode2(struct GBAVideoSoftwareRenderer* renderer, stru
if (background->overflow) {
localX = x & (sizeAdjusted - 1);
localY = y & (sizeAdjusted - 1);
} else if (x < 0 || y < 0 || x >= sizeAdjusted || y >= sizeAdjusted) {
} else if ((x | y) & ~(sizeAdjusted - 1)) {
continue;
} else {
localX = x;