]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Skip last D write if D channel was disabled.
authorToni Wilen <twilen@winuae.net>
Sat, 16 Jan 2021 14:20:39 +0000 (16:20 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 16 Jan 2021 14:20:39 +0000 (16:20 +0200)
blitter.cpp

index 716254c37b30a456ee4141a88ed2a68cc0d76eda..c7dc8bb2e2022e6bd476fa1f980d69e08fc38145 100644 (file)
@@ -458,12 +458,16 @@ static void blitter_maybe_done_early(int hpos)
                }
        }
        // busy cleared, interrupt generated.
-       // last D write still pending if not linemode
+       // last D write still pending if not linemode and D channel active
        if (blitline) {
                blitter_done(hpos);
        } else {
-               blitter_interrupt(hpos, 0);
-               blt_info.blit_finald = 1 + 2;
+               if (ddat1use) {
+                       blt_info.blit_finald = 1 + 2;
+                       blitter_interrupt(hpos, 0);
+               } else {
+                       blitter_done(hpos);
+               }
        }
 }