summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2020-04-01 23:15:47 -0700
committerMichael Pavone <pavone@retrodev.com>2020-04-01 23:15:47 -0700
commitbeeeda5271442758928dad66ddf8129741d037d8 (patch)
tree6b350cbd5d5322c6b2bad92f40513577af60dc89
parent1819161e767a4f26318d99a4d8a7123bca0e7d5d (diff)
Fix regression at the very start of The Revenge of Shinobi
-rw-r--r--vdp.c2
1 files changed, 2 insertions, 0 deletions
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];