mirror of https://github.com/mgba-emu/mgba.git
Fix window edge case that might cause 0-width windows to draw
This commit is contained in:
parent
a855f53355
commit
900d1684a9
|
@ -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) { \
|
||||||
|
|
Loading…
Reference in New Issue