Mercurial > repos > blastem
changeset 1913:2c742812bcbb
Fix regression at the very start of The Revenge of Shinobi
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 01 Apr 2020 23:15:47 -0700 |
parents | 00fb99805445 |
children | 5b94e0e7c5a5 |
files | vdp.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/vdp.c Sat Mar 28 15:46:53 2020 -0700 +++ b/vdp.c Wed Apr 01 23:15:47 2020 -0700 @@ -3500,6 +3500,8 @@ } 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];