changeset 1269:ff8e29eeb1ec

Render horizontal border in H32 mode as well. Both modes still need some minor work to deal with inactive/active transition
author Michael Pavone <pavone@retrodev.com>
date Mon, 06 Mar 2017 09:54:44 -0800
parents eca01056a915
children 687d3969416b
files vdp.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vdp.c	Mon Mar 06 09:46:50 2017 -0800
+++ b/vdp.c	Mon Mar 06 09:54:44 2017 -0800
@@ -2042,9 +2042,15 @@
 	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;