summaryrefslogtreecommitdiff
path: root/vdp.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-03-06 09:54:44 -0800
committerMichael Pavone <pavone@retrodev.com>2017-03-06 09:54:44 -0800
commit51e5882e52313077cae1f0d2a1a1e9042ef96df7 (patch)
tree8723152e16cb5f663d6341c60be98df23140f938 /vdp.c
parent23cf6edf2d122fc74136abcce553dc0ecca03c10 (diff)
Render horizontal border in H32 mode as well. Both modes still need some minor work to deal with inactive/active transition
Diffstat (limited to 'vdp.c')
-rw-r--r--vdp.c8
1 files changed, 7 insertions, 1 deletions
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;