Mercurial > repos > blastem
comparison vdp.c @ 1179:1271b240b9c2
Fix vdp_run_to_vblank
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 17 Jan 2017 09:27:05 -0800 |
parents | 24fc305396ee |
children | e2b81a0f8fd8 |
comparison
equal
deleted
inserted
replaced
1178:24fc305396ee | 1179:1271b240b9c2 |
---|---|
2262 | 2262 |
2263 uint32_t vdp_run_to_vblank(vdp_context * context) | 2263 uint32_t vdp_run_to_vblank(vdp_context * context) |
2264 { | 2264 { |
2265 uint32_t old_frame = context->frame; | 2265 uint32_t old_frame = context->frame; |
2266 while (context->frame == old_frame) { | 2266 while (context->frame == old_frame) { |
2267 vdp_run_context(context, MCLKS_LINE); | 2267 vdp_run_context(context, context->cycles + MCLKS_LINE); |
2268 } | 2268 } |
2269 return context->cycles; | 2269 return context->cycles; |
2270 } | 2270 } |
2271 | 2271 |
2272 void vdp_run_dma_done(vdp_context * context, uint32_t target_cycles) | 2272 void vdp_run_dma_done(vdp_context * context, uint32_t target_cycles) |