# HG changeset patch # User Michael Pavone # Date 1484674025 28800 # Node ID 1271b240b9c219df4b1a277c613ed4a06d75afd9 # Parent 24fc305396ee243829fb24ec4b77b90f826033a9 Fix vdp_run_to_vblank diff -r 24fc305396ee -r 1271b240b9c2 vdp.c --- a/vdp.c Tue Jan 17 09:18:35 2017 -0800 +++ b/vdp.c Tue Jan 17 09:27:05 2017 -0800 @@ -2264,7 +2264,7 @@ { 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; }