]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix bitplane DMA stealing sprite DMA slots
authorToni Wilen <twilen@winuae.net>
Mon, 2 Jan 2023 18:52:39 +0000 (20:52 +0200)
committerToni Wilen <twilen@winuae.net>
Mon, 2 Jan 2023 18:52:39 +0000 (20:52 +0200)
custom.cpp

index ba8e36040e2c00c98c4a7b91b478fc4a382685b4..7d11ab29b18bb418e209d1a88333c0c5f625cde3 100644 (file)
@@ -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) {