diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-03-06 09:54:44 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-03-06 09:54:44 -0800 |
commit | 51e5882e52313077cae1f0d2a1a1e9042ef96df7 (patch) | |
tree | 8723152e16cb5f663d6341c60be98df23140f938 | |
parent | 23cf6edf2d122fc74136abcce553dc0ecca03c10 (diff) |
Render horizontal border in H32 mode as well. Both modes still need some minor work to deal with inactive/active transition
-rw-r--r-- | vdp.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; |