From: notaz Date: Tue, 1 Jul 2008 20:53:04 +0000 (+0000) Subject: bugfix X-Git-Tag: v1.85~450 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=411cba909948d06ff600577943e21a58b64609ce;p=picodrive.git bugfix git-svn-id: file:///home/notaz/opt/svn/PicoDrive@512 be3aeb3a-fb24-0410-a615-afba39da0efa --- 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)