Fix window edge case that might cause 0-width windows to draw

This commit is contained in:
Jeffrey Pfau 2014-07-24 02:34:42 -07:00
parent a855f53355
commit 900d1684a9
1 changed files with 3 additions and 0 deletions

View File

@ -1114,6 +1114,9 @@ static inline void _compositeNoBlendNoObjwin(struct GBAVideoSoftwareRenderer* re
/* TODO: ensure tiles are properly aligned from this*/ \ /* TODO: ensure tiles are properly aligned from this*/ \
end = renderer->end; \ end = renderer->end; \
} \ } \
if (end == outX) { \
return; \
} \
DRAW_BACKGROUND_MODE_0_TILE_SUFFIX_ ## BPP (BLEND, OBJWIN) \ DRAW_BACKGROUND_MODE_0_TILE_SUFFIX_ ## BPP (BLEND, OBJWIN) \
} \ } \
if (inX & 0x7 || (renderer->end - renderer->start) & 0x7) { \ if (inX & 0x7 || (renderer->end - renderer->start) & 0x7) { \