summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-01-17 09:27:05 -0800
committerMichael Pavone <pavone@retrodev.com>2017-01-17 09:27:05 -0800
commit0e0a78ba18593f9ac102d29e010c9e25fa69dfa4 (patch)
treee605c12000f8579d088b105a913acbfd0f372d33
parentd4ca3b5c277cad0ba44a202648a98b67670a05ee (diff)
Fix vdp_run_to_vblank
-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;
}