From 411cba909948d06ff600577943e21a58b64609ce Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 1 Jul 2008 20:53:04 +0000 Subject: [PATCH] bugfix git-svn-id: file:///home/notaz/opt/svn/PicoDrive@512 be3aeb3a-fb24-0410-a615-afba39da0efa --- Pico/Draw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Pico/Draw.c b/Pico/Draw.c index 0390d843..0c5f1781 100644 --- a/Pico/Draw.c +++ b/Pico/Draw.c @@ -852,7 +852,6 @@ static void DrawSpritesFromCacheAS(int *hc, int maxwidth, int prio, int sh) { if(code&0x10000) fTileFunc=TileFlipAS_noop; else fTileFunc=TileNormAS_noop; - *(--hco) = code; /* save for later */ } else { if(code&0x10000) fTileFunc=TileFlipAS; else fTileFunc=TileNormAS; @@ -861,6 +860,8 @@ static void DrawSpritesFromCacheAS(int *hc, int maxwidth, int prio, int sh) if(code&0x10000) fTileFunc=TileFlipAS_onlymark; else fTileFunc=TileNormAS_onlymark; } + if (sh && pal == 0x30) + *(--hco) = code; /* save for later */ pal |= 0x80; for (; width; width--,sx+=8,tile+=delta) -- 2.39.5