From 0e0a78ba18593f9ac102d29e010c9e25fa69dfa4 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 17 Jan 2017 09:27:05 -0800 Subject: Fix vdp_run_to_vblank --- vdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vdp.c') diff --git a/vdp.c b/vdp.c index 8c1b1aa..56c3c5e 100644 --- a/vdp.c +++ b/vdp.c @@ -2264,7 +2264,7 @@ uint32_t vdp_run_to_vblank(vdp_context * context) { uint32_t old_frame = context->frame; while (context->frame == old_frame) { - vdp_run_context(context, MCLKS_LINE); + vdp_run_context(context, context->cycles + MCLKS_LINE); } return context->cycles; } -- cgit v1.2.3