notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
787a0af
)
vdp sprite rendering fix
author
kub
<derkub@gmail.com>
Sun, 23 Feb 2020 19:15:07 +0000
(20:15 +0100)
committer
kub
<derkub@gmail.com>
Sun, 23 Feb 2020 19:15:07 +0000
(20:15 +0100)
pico/videoport.c
patch
|
blob
|
blame
|
history
diff --git
a/pico/videoport.c
b/pico/videoport.c
index
533c788
..
122908e
100644
(file)
--- a/
pico/videoport.c
+++ b/
pico/videoport.c
@@
-341,7
+341,7
@@
static __inline void UpdateSAT(u32 a, u32 d)
{
\r
Pico.est.rendstatus |= PDRAW_DIRTY_SPRITES;
\r
if (!((a^sat) >> satxbits) && !(a & 4)) {
\r
- int num = (a
>> 3) & 0x7f
;
\r
+ int num = (a
-sat) >> 3
;
\r
((u16 *)&VdpSATCache[num])[(a&3) >> 1] = d;
\r
}
\r
}
\r