GBA Video: Remove redundant checks
Vicki Pfau vi@endrift.com
Sat, 26 Jan 2019 22:38:47 -0800
1 files changed,
0 insertions(+),
6 deletions(-)
jump to
M
src/gba/renderers/software-obj.c
→
src/gba/renderers/software-obj.c
@@ -27,9 +27,6 @@ outX += mosaicH - (outX % mosaicH); \
} \ } \ for (; outX < condition; ++outX, inX += xOffset) { \ - if (!(renderer->row[outX] & FLAG_UNWRITTEN)) { \ - continue; \ - } \ int localX = inX - xOffset * (outX % mosaicH); \ if (localX < 0 || localX > width - 1) { \ continue; \@@ -43,9 +40,6 @@ unsigned tileData; \
unsigned widthMask = ~(width - 1); \ unsigned heightMask = ~(height - 1); \ for (; outX < condition; ++outX, ++inX) { \ - if (!(renderer->row[outX] & FLAG_UNWRITTEN)) { \ - continue; \ - } \ renderer->spriteCyclesRemaining -= 2; \ xAccum += mat.a; \ yAccum += mat.c; \