Fix window edge case that might cause 0-width windows to draw
Jeffrey Pfau jeffrey@endrift.com
Thu, 24 Jul 2014 02:34:42 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
M
src/gba/renderers/video-software.c
→
src/gba/renderers/video-software.c
@@ -1114,6 +1114,9 @@ if (end > renderer->end) { \
/* TODO: ensure tiles are properly aligned from this*/ \ end = renderer->end; \ } \ + if (end == outX) { \ + return; \ + } \ DRAW_BACKGROUND_MODE_0_TILE_SUFFIX_ ## BPP (BLEND, OBJWIN) \ } \ if (inX & 0x7 || (renderer->end - renderer->start) & 0x7) { \