From: Toni Wilen Date: Thu, 18 Aug 2022 18:25:39 +0000 (+0300) Subject: Fix random graphics corruption if SPRxPTx was modified mid-scanline and bitplane... X-Git-Tag: 41000~155 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=924bef6d39f155514176596cdbf413231a6e8ce7;p=francis%2Fwinuae.git Fix random graphics corruption if SPRxPTx was modified mid-scanline and bitplane(s) was active. --- diff --git a/custom.cpp b/custom.cpp index e083f4b1..49a482d0 100644 --- a/custom.cpp +++ b/custom.cpp @@ -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)) {