summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vdp.c2
1 files changed, 1 insertions, 1 deletions
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;
}