From: Toni Wilen Date: Mon, 2 Jan 2023 18:52:39 +0000 (+0200) Subject: Fix bitplane DMA stealing sprite DMA slots X-Git-Tag: 41010~31 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=ce1fb645d818c6c9a95487e888b21e187d7bc5fd;p=francis%2Fwinuae.git Fix bitplane DMA stealing sprite DMA slots --- 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) {