diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-01-15 22:54:01 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-01-15 22:54:01 -0800 |
commit | bd56f5fa899f2c453d51a32af1a693e80a3369af (patch) | |
tree | fe6344cfc9b42a93e501ca52cbe2690da2b7af97 /vdp.c | |
parent | 9445afdfa55ad973fdb05530b4de6402127a8a2e (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |