changeset 1315:810ae0287d66

Fix minor bug that displayed window plane as if it were plane A In plane debug view
author Michael Pavone <pavone@retrodev.com>
date Wed, 05 Apr 2017 09:48:49 -0700
parents ae932ca28282
children 3185438e0134
files vdp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/vdp.c	Tue Apr 04 19:31:14 2017 -0700
+++ b/vdp.c	Wed Apr 05 09:48:49 2017 -0700
@@ -1235,7 +1235,7 @@
 					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 @@
 					}
 					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;