summaryrefslogtreecommitdiff
path: root/vdp.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-01-15 22:54:01 -0800
committerMichael Pavone <pavone@retrodev.com>2017-01-15 22:54:01 -0800
commitbd56f5fa899f2c453d51a32af1a693e80a3369af (patch)
treefe6344cfc9b42a93e501ca52cbe2690da2b7af97 /vdp.c
parent9445afdfa55ad973fdb05530b4de6402127a8a2e (diff)
Don't adjust cycles every frame. Only when we start getting close to UINT_MAX. Don't adjust all the way down to zero when we do adjust. Shouldn't fix anything, but may make debugging current issues easier.
Diffstat (limited to 'vdp.c')
-rw-r--r--vdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdp.c b/vdp.c
index 701c894..38bb36d 100644
--- a/vdp.c
+++ b/vdp.c
@@ -1174,7 +1174,7 @@ static void render_map_output(uint32_t line, int32_t col, vdp_context * context)
}
col -= 2;
dst = context->output + col * 8;
- uint32_t color = context->colors[context->regs[REG_BG_COLOR]];
+ uint32_t color = context->colors[context->regs[REG_BG_COLOR] & 0x3F];
for (int i = 0; i < 16; i++)
{
*(dst++) = color;