comparison vdp.c @ 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 da1ffc4026c4
children bfdd450e7dea
comparison
equal deleted inserted replaced
1314:ae932ca28282 1315:810ae0287d66
1233 src = DBG_SRC_B; 1233 src = DBG_SRC_B;
1234 } 1234 }
1235 uint8_t intensity = *plane_b & BUF_BIT_PRIORITY; 1235 uint8_t intensity = *plane_b & BUF_BIT_PRIORITY;
1236 if (*plane_a & 0xF && (*plane_a & BUF_BIT_PRIORITY) >= (pixel & BUF_BIT_PRIORITY)) { 1236 if (*plane_a & 0xF && (*plane_a & BUF_BIT_PRIORITY) >= (pixel & BUF_BIT_PRIORITY)) {
1237 pixel = *plane_a; 1237 pixel = *plane_a;
1238 src = DBG_SRC_A; 1238 src = a_src;
1239 } 1239 }
1240 intensity |= *plane_a & BUF_BIT_PRIORITY; 1240 intensity |= *plane_a & BUF_BIT_PRIORITY;
1241 if (*sprite_buf & 0xF && (*sprite_buf & BUF_BIT_PRIORITY) >= (pixel & BUF_BIT_PRIORITY)) { 1241 if (*sprite_buf & 0xF && (*sprite_buf & BUF_BIT_PRIORITY) >= (pixel & BUF_BIT_PRIORITY)) {
1242 if ((*sprite_buf & 0x3F) == 0x3E) { 1242 if ((*sprite_buf & 0x3F) == 0x3E) {
1243 intensity += BUF_BIT_PRIORITY; 1243 intensity += BUF_BIT_PRIORITY;
1279 pixel = *plane_b; 1279 pixel = *plane_b;
1280 src = DBG_SRC_B; 1280 src = DBG_SRC_B;
1281 } 1281 }
1282 if (*plane_a & 0xF && (*plane_a & BUF_BIT_PRIORITY) >= (pixel & BUF_BIT_PRIORITY)) { 1282 if (*plane_a & 0xF && (*plane_a & BUF_BIT_PRIORITY) >= (pixel & BUF_BIT_PRIORITY)) {
1283 pixel = *plane_a; 1283 pixel = *plane_a;
1284 src = DBG_SRC_A; 1284 src = a_src;
1285 } 1285 }
1286 if (*sprite_buf & 0xF && (*sprite_buf & BUF_BIT_PRIORITY) >= (pixel & BUF_BIT_PRIORITY)) { 1286 if (*sprite_buf & 0xF && (*sprite_buf & BUF_BIT_PRIORITY) >= (pixel & BUF_BIT_PRIORITY)) {
1287 pixel = *sprite_buf; 1287 pixel = *sprite_buf;
1288 src = DBG_SRC_S; 1288 src = DBG_SRC_S;
1289 } 1289 }