From e72bc9099c8e7c380e9779b4b1d110f1de8d5716 Mon Sep 17 00:00:00 2001 From: kub Date: Sun, 23 Feb 2020 20:15:07 +0100 Subject: [PATCH] vdp sprite rendering fix --- pico/videoport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pico/videoport.c b/pico/videoport.c index 533c7880..122908e4 100644 --- a/pico/videoport.c +++ b/pico/videoport.c @@ -341,7 +341,7 @@ static __inline void UpdateSAT(u32 a, u32 d) { Pico.est.rendstatus |= PDRAW_DIRTY_SPRITES; if (!((a^sat) >> satxbits) && !(a & 4)) { - int num = (a >> 3) & 0x7f; + int num = (a-sat) >> 3; ((u16 *)&VdpSATCache[num])[(a&3) >> 1] = d; } } -- 2.39.2