From beeeda5271442758928dad66ddf8129741d037d8 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 1 Apr 2020 23:15:47 -0700 Subject: Fix regression at the very start of The Revenge of Shinobi --- vdp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vdp.c b/vdp.c index 2f6d93f..93ad895 100644 --- a/vdp.c +++ b/vdp.c @@ -3500,6 +3500,8 @@ static void vdp_inactive(vdp_context *context, uint32_t target_cycles, uint8_t i } else if (context->regs[REG_MODE_1] & BIT_MODE_4) { bg_index = 0x10 + (context->regs[REG_BG_COLOR] & 0xF); bg_color = context->colors[MODE4_OFFSET + bg_index]; + } else { + bg_color = render_map_color(0, 0, 0); } if (context->done_composite) { uint8_t pixel = context->compositebuf[dst-context->output]; -- cgit v1.2.3