From 042380eef754a75f337e1f16caf4050ff457c105 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 5 Apr 2017 09:48:49 -0700 Subject: Fix minor bug that displayed window plane as if it were plane A In plane debug view --- vdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vdp.c') diff --git a/vdp.c b/vdp.c index 30b04bd..2fc9efb 100644 --- a/vdp.c +++ b/vdp.c @@ -1235,7 +1235,7 @@ static void render_map_output(uint32_t line, int32_t col, vdp_context * context) uint8_t intensity = *plane_b & BUF_BIT_PRIORITY; if (*plane_a & 0xF && (*plane_a & BUF_BIT_PRIORITY) >= (pixel & BUF_BIT_PRIORITY)) { pixel = *plane_a; - src = DBG_SRC_A; + src = a_src; } intensity |= *plane_a & BUF_BIT_PRIORITY; if (*sprite_buf & 0xF && (*sprite_buf & BUF_BIT_PRIORITY) >= (pixel & BUF_BIT_PRIORITY)) { @@ -1281,7 +1281,7 @@ static void render_map_output(uint32_t line, int32_t col, vdp_context * context) } if (*plane_a & 0xF && (*plane_a & BUF_BIT_PRIORITY) >= (pixel & BUF_BIT_PRIORITY)) { pixel = *plane_a; - src = DBG_SRC_A; + src = a_src; } if (*sprite_buf & 0xF && (*sprite_buf & BUF_BIT_PRIORITY) >= (pixel & BUF_BIT_PRIORITY)) { pixel = *sprite_buf; -- cgit v1.2.3