From: kub Date: Sun, 23 Feb 2020 19:15:07 +0000 (+0100) Subject: vdp sprite rendering fix X-Git-Tag: v2.00~782 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e72bc9099c8e7c380e9779b4b1d110f1de8d5716;p=picodrive.git vdp sprite rendering fix --- 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; } }