]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix single scanline graphics corruption in some rare situations
authorToni Wilen <twilen@winuae.net>
Sun, 25 Dec 2022 18:04:09 +0000 (20:04 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 25 Dec 2022 18:04:09 +0000 (20:04 +0200)
custom.cpp

index 734a185c38a5edefaf2f00c128c31a4dacfcc392..7a528cd0be6d4ba956a54dab1fc855f948e5cf0d 100644 (file)
@@ -5664,8 +5664,8 @@ static void reset_decisions_hsync_start(void)
        // workaround for glitches in faster modes
        // update Denise state immediately if bitplane DMA is idle and shifters are empty
        if (!bprun && !plane0 && !plane0p) {
-               bplcon0d = BPLCON0_Denise_mask(bplcon0);
-               toscr_nr_planes_shifter = GET_PLANES(bplcon0d);
+               uae_u16 bcon0 = BPLCON0_Denise_mask(bplcon0);
+               toscr_nr_planes_shifter = GET_PLANES(bcon0);
        }
 
        toscr_nr_planes2 = GET_PLANES(bplcon0d);