summaryrefslogtreecommitdiff
path: root/vdp.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-01-17 09:18:16 -0800
committerMichael Pavone <pavone@retrodev.com>2017-01-17 09:18:16 -0800
commit4e1834ec70e642276d8ba0a74eea5caa07fde165 (patch)
tree8bbe4e1df4193fdaf0c4a0421a3ae2769e4ec2ea /vdp.c
parent53f7ba11cd4969d80d3d38f8321b224fd2d7006e (diff)
Fix line advancement in Mode 4 during inactive display. Fix a Mode 4 VInt timing discrepency
Diffstat (limited to 'vdp.c')
-rw-r--r--vdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vdp.c b/vdp.c
index b9d267c..e055ad7 100644
--- a/vdp.c
+++ b/vdp.c
@@ -2151,7 +2151,7 @@ static void vdp_inactive(vdp_context *context, uint32_t target_cycles, uint8_t i
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 @@ uint32_t vdp_next_vint_z80(vdp_context * context)
}
}
} 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) {