]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix random graphics corruption if SPRxPTx was modified mid-scanline and bitplane...
authorToni Wilen <twilen@winuae.net>
Thu, 18 Aug 2022 18:25:39 +0000 (21:25 +0300)
committerToni Wilen <twilen@winuae.net>
Thu, 18 Aug 2022 18:25:39 +0000 (21:25 +0300)
custom.cpp

index e083f4b1142f6d0d449e158940b0c492c6bdc423..49a482d0c5217cca2caf2825ea04b7d62550e4af 100644 (file)
@@ -8906,6 +8906,7 @@ static void SPRxPOS(int hpos, uae_u16 v, int num)
 
 static void SPRxPTH(int hpos, uae_u16 v, int num)
 {
+       decide_line(hpos);
        decide_fetch_safe(hpos);
        decide_sprites(hpos);
        if (get_sprite_dma_rel(hpos, 1) != num || (!copper_access && !currprefs.cpu_memory_cycle_exact)) {
@@ -8924,6 +8925,7 @@ static void SPRxPTH(int hpos, uae_u16 v, int num)
 }
 static void SPRxPTL(int hpos, uae_u16 v, int num)
 {
+       decide_line(hpos);
        decide_fetch_safe(hpos);
        decide_sprites(hpos);
        if (get_sprite_dma_rel(hpos, 1) != num || (!copper_access && !currprefs.cpu_memory_cycle_exact)) {