From dd649aafa262f0b66387b3d0d843b17a63f069f3 Mon Sep 17 00:00:00 2001 From: gocha Date: Mon, 14 Sep 2009 04:30:40 +0000 Subject: [PATCH] Fix render_sprite_Win to handle 256 color objects properly. --- desmume/src/GPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index 71a79fb1f..b361fa607 100644 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -1364,7 +1364,7 @@ INLINE void render_sprite_Win (GPU * gpu, u16 l, u8 * src, if (col256) { for(i = 0; i < lg; i++, sprX++,x+=xdir) //sprWin[sprX] = (src[x])?1:0; - if(src[x]) + if(src[(x&7) + ((x&0xFFF8)<<3)]) sprWin[sprX] = 1; } else { for(i = 0; i < lg; i++, ++sprX, x+=xdir)