Mercurial > repos > blastem
changeset 1177:67e0462c30ce
Fix line advancement in Mode 4 during inactive display. Fix a Mode 4 VInt timing discrepency
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 17 Jan 2017 09:18:16 -0800 |
parents | aa6e0914dcd7 |
children | 24fc305396ee |
files | vdp.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/vdp.c Tue Jan 17 09:17:43 2017 -0800 +++ b/vdp.c Tue Jan 17 09:18:16 2017 -0800 @@ -2151,7 +2151,7 @@ index_reset_value = 0; vint_line = context->inactive_start + 1; vint_slot = VINT_SLOT_MODE4; - line_change = LINE_CHANGE_H40; + line_change = LINE_CHANGE_MODE4; bg_color = render_map_color(0, 0, 0); jump_start = 147; jump_dest = 233; @@ -2794,7 +2794,7 @@ } } } else { - if (context->hslot >= LINE_CHANGE_H40) { + if (context->hslot >= LINE_CHANGE_MODE4) { return context->cycles + (VINT_SLOT_MODE4 + 256 - context->hslot) * MCLKS_SLOT_H32; } if (context->hslot <= VINT_SLOT_MODE4) {