mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sprite acching removed in asm too
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@518 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
ee4f03ae86
commit
e352c3af64
4 changed files with 146 additions and 136 deletions
|
@ -144,6 +144,8 @@ TileFlipMaker(TileFlip,pix_just_write)
|
|||
|
||||
#endif
|
||||
|
||||
#ifndef _ASM_DRAW_C
|
||||
|
||||
// draw a sprite pixel, process operator colors
|
||||
#define pix_sh(x) \
|
||||
if (!t); \
|
||||
|
@ -154,7 +156,6 @@ TileFlipMaker(TileFlip,pix_just_write)
|
|||
TileNormMaker(TileNormSH, pix_sh)
|
||||
TileFlipMaker(TileFlipSH, pix_sh)
|
||||
|
||||
#ifndef _ASM_DRAW_C
|
||||
// draw a sprite pixel ignoring operator colors
|
||||
#define pix_sh_noop(x) \
|
||||
if (t && t < 0xe) \
|
||||
|
@ -162,7 +163,6 @@ TileFlipMaker(TileFlipSH, pix_sh)
|
|||
|
||||
TileNormMaker(TileNormSH_noop, pix_sh_noop)
|
||||
TileFlipMaker(TileFlipSH_noop, pix_sh_noop)
|
||||
#endif
|
||||
|
||||
// process operator pixels only, apply only on low pri tiles
|
||||
#define pix_sh_onlyop(x) \
|
||||
|
@ -172,6 +172,8 @@ TileFlipMaker(TileFlipSH_noop, pix_sh_noop)
|
|||
TileNormMaker(TileNormSH_onlyop_lp, pix_sh_onlyop)
|
||||
TileFlipMaker(TileFlipSH_onlyop_lp, pix_sh_onlyop)
|
||||
|
||||
#endif
|
||||
|
||||
// draw a sprite pixel (AS)
|
||||
#define pix_as(x) \
|
||||
if (t && !(pd[x]&0x80)) pd[x]=pal|t
|
||||
|
@ -985,6 +987,9 @@ void PrepareSprites(int full)
|
|||
HighLnSpr[y][2+cnt] = entry;
|
||||
HighLnSpr[y][0] = cnt + 1;
|
||||
found:;
|
||||
if (entry & 0x80)
|
||||
rendstatus |= PDRAW_HAVE_HI_SPR;
|
||||
else rendstatus |= PDRAW_HAVE_LO_SPR;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue