diff options
author | RSDuck <RSDuck@users.noreply.github.com> | 2021-02-02 20:37:28 +0100 |
---|---|---|
committer | RSDuck <RSDuck@users.noreply.github.com> | 2021-02-02 20:37:28 +0100 |
commit | 7b9b8418cb91c98525a63fdd1c53089da0d0c758 (patch) | |
tree | aff434dc8452017126de9e25a02f7c795491365f /src | |
parent | 2e999ae1b8e88e41fce3b2289372b44344cc79b0 (diff) |
fix #978
Diffstat (limited to 'src')
-rw-r--r-- | src/GPU2D_Soft.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GPU2D_Soft.cpp b/src/GPU2D_Soft.cpp index 53e7b73..7cab67a 100644 --- a/src/GPU2D_Soft.cpp +++ b/src/GPU2D_Soft.cpp @@ -2126,7 +2126,7 @@ void GPU2D_Soft::DrawSprite_Normal(u32 num, u32 width, u32 height, s32 xpos, s32 for (; xoff < xend;) { - color = objvram[pixelsaddr]; + color = objvram[pixelsaddr & objvrammask]; pixelsaddr += pixelstride; |