]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Sprite DMA is disabled during Vblank.
authorToni Wilen <twilen@winuae.net>
Wed, 27 Mar 2024 19:00:28 +0000 (21:00 +0200)
committerToni Wilen <twilen@winuae.net>
Wed, 27 Mar 2024 19:00:28 +0000 (21:00 +0200)
custom.cpp

index f1c4c90e3240cc926ff62b53e9e4ae01d7bdbabe..dd65a46534e0331a54bac9d8e0d0ad2ab8e83bd3 100644 (file)
@@ -11622,7 +11622,7 @@ static void decide_sprites_fetch(int endhpos)
                                                        s->dmacycle = 1;
                                                }
                                        }
-                                       if (dmaen(DMA_SPRITE) && s->dmacycle && !vb_end_line) {
+                                       if (dmaen(DMA_SPRITE) && s->dmacycle && !vb_start_line && !vb_end_line) {
                                                bool dodma = false;
 
                                                decide_bpl_fetch(hpos + 1);