From 924bef6d39f155514176596cdbf413231a6e8ce7 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Thu, 18 Aug 2022 21:25:39 +0300 Subject: [PATCH] Fix random graphics corruption if SPRxPTx was modified mid-scanline and bitplane(s) was active. --- custom.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)) { -- 2.47.3