summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-04-05 09:48:49 -0700
committerMichael Pavone <pavone@retrodev.com>2017-04-05 09:48:49 -0700
commit042380eef754a75f337e1f16caf4050ff457c105 (patch)
tree5d2e350cde00b8d31c9d97c3239b917ca2c9fd7a
parente27e2f7fd642beb4381ec6171b7b4a8a6da5deb5 (diff)
Fix minor bug that displayed window plane as if it were plane A In plane debug view
-rw-r--r--vdp.c4
1 files changed, 2 insertions, 2 deletions
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;