all repos — mgba @ 900d1684a9a762cd571e86241a32d4cfb0ab1039

mGBA Game Boy Advance Emulator

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
commit

900d1684a9a762cd571e86241a32d4cfb0ab1039

parent

a855f53355550ef6bbacb139cbdde0b013df7a74

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/gba/renderers/video-software.csrc/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) { \