# HG changeset patch # User Michael Pavone # Date 1484673496 28800 # Node ID 67e0462c30cefcb6622f67bf0cbb0dc29e3c32fb # Parent aa6e0914dcd78e895103dfe1fea70850cbf76aa0 Fix line advancement in Mode 4 during inactive display. Fix a Mode 4 VInt timing discrepency diff -r aa6e0914dcd7 -r 67e0462c30ce vdp.c --- 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) {