mirror of https://github.com/mgba-emu/mgba.git
GBA Video: Remove redundant checks
This commit is contained in:
parent
8106c99c2e
commit
2d303cdda3
|
@ -27,9 +27,6 @@
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
for (; outX < condition; ++outX, inX += xOffset) { \
|
for (; outX < condition; ++outX, inX += xOffset) { \
|
||||||
if (!(renderer->row[outX] & FLAG_UNWRITTEN)) { \
|
|
||||||
continue; \
|
|
||||||
} \
|
|
||||||
int localX = inX - xOffset * (outX % mosaicH); \
|
int localX = inX - xOffset * (outX % mosaicH); \
|
||||||
if (localX < 0 || localX > width - 1) { \
|
if (localX < 0 || localX > width - 1) { \
|
||||||
continue; \
|
continue; \
|
||||||
|
@ -43,9 +40,6 @@
|
||||||
unsigned widthMask = ~(width - 1); \
|
unsigned widthMask = ~(width - 1); \
|
||||||
unsigned heightMask = ~(height - 1); \
|
unsigned heightMask = ~(height - 1); \
|
||||||
for (; outX < condition; ++outX, ++inX) { \
|
for (; outX < condition; ++outX, ++inX) { \
|
||||||
if (!(renderer->row[outX] & FLAG_UNWRITTEN)) { \
|
|
||||||
continue; \
|
|
||||||
} \
|
|
||||||
renderer->spriteCyclesRemaining -= 2; \
|
renderer->spriteCyclesRemaining -= 2; \
|
||||||
xAccum += mat.a; \
|
xAccum += mat.a; \
|
||||||
yAccum += mat.c; \
|
yAccum += mat.c; \
|
||||||
|
|
Loading…
Reference in New Issue