From 51e5882e52313077cae1f0d2a1a1e9042ef96df7 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 6 Mar 2017 09:54:44 -0800 Subject: Render horizontal border in H32 mode as well. Both modes still need some minor work to deal with inactive/active transition --- vdp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'vdp.c') diff --git a/vdp.c b/vdp.c index 54bb7e2..66ecc59 100644 --- a/vdp.c +++ b/vdp.c @@ -2042,9 +2042,15 @@ static void vdp_h32(vdp_context * context, uint32_t target_cycles) case 129: external_slot(context); CHECK_LIMIT - case 130: + case 130: { external_slot(context); + uint32_t bg_color = context->colors[context->regs[REG_BG_COLOR] & 0x3F]; + for (int i = 256+BORDER_LEFT; i < 256+HORIZ_BORDER; i++) + { + context->output[i] = bg_color; + } CHECK_LIMIT + } //sprite render to line buffer starts case 131: context->cur_slot = MAX_DRAWS_H32-1; -- cgit v1.2.3