From ce1fb645d818c6c9a95487e888b21e187d7bc5fd Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 2 Jan 2023 20:52:39 +0200 Subject: [PATCH] Fix bitplane DMA stealing sprite DMA slots --- custom.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/custom.cpp b/custom.cpp index ba8e3604..7d11ab29 100644 --- a/custom.cpp +++ b/custom.cpp @@ -9538,8 +9538,8 @@ static void decide_line(int endhpos) decide_line_decision_fetches(hpos); // Bitplane sequencer activated bprun = -1; - if (plfstrt_sprite > hpos) { - plfstrt_sprite = hpos; + if (plfstrt_sprite > hpos + 1) { + plfstrt_sprite = hpos + 1; } bprun_start(hpos); if (ddf_stopping) { @@ -9639,9 +9639,8 @@ static void decide_line(int endhpos) decide_line_decision_fetches(hpos); // Bitplane sequencer activated bprun = -1; - if (plfstrt_sprite > hpos) { - plfstrt_sprite = hpos; - plfstrt_sprite--; + if (plfstrt_sprite > hpos + 0) { + plfstrt_sprite = hpos + 0; } bprun_start(hpos); if (ddf_stopping) { -- 2.47.3