From 9fa33049138aaee23501e87a088bc08109e2a58c Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Tue, 14 May 2013 00:46:34 -0700 Subject: Only latch video mode at the very beginning of the frame to avoid problems with the cycle count getting out of sync with what I expect --- vdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vdp.c') diff --git a/vdp.c b/vdp.c index 1ef315f..a0bfdb3 100644 --- a/vdp.c +++ b/vdp.c @@ -1111,7 +1111,7 @@ void vdp_run_context(vdp_context * context, uint32_t target_cycles) { uint32_t line = context->cycles / MCLKS_LINE; uint32_t active_lines = context->latched_mode & BIT_PAL ? PAL_ACTIVE : NTSC_ACTIVE; - if (!line) { + if (!context->cycles) { latch_mode(context); } uint32_t linecyc = context->cycles % MCLKS_LINE; -- cgit v1.2.3