changeset 1173:d0f67c59b756

Fix H32 inconsistency
author Michael Pavone <pavone@retrodev.com>
date Mon, 16 Jan 2017 22:30:21 -0800
parents 14eb8ff4fb03
children 500d8deea802
files vdp.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/vdp.c	Mon Jan 16 21:38:49 2017 -0800
+++ b/vdp.c	Mon Jan 16 22:30:21 2017 -0800
@@ -1960,13 +1960,16 @@
 		CHECK_LIMIT
 	case 132:
 		render_sprite_cells(context);
+		if (context->flags & FLAG_DMA_RUN) {
+			run_dma_src(context, -1);
+		}
+		context->hslot++;
+		context->cycles += slot_cycles;
 		vdp_advance_line(context);
 		if (context->vcounter == context->inactive_start) {
-			context->hslot++;
-			context->cycles += slot_cycles;
 			return;
 		}
-		CHECK_LIMIT
+		CHECK_ONLY
 	}
 	default:
 		context->hslot++;