From 7b9b8418cb91c98525a63fdd1c53089da0d0c758 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Tue, 2 Feb 2021 20:37:28 +0100 Subject: fix #978 --- src/GPU2D_Soft.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3