mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 23:37:46 -04:00
core, structural cleanup, fixes and improvements for type issues #2
This commit is contained in:
parent
5ab80df952
commit
f821bb7011
64 changed files with 140 additions and 150 deletions
|
@ -53,7 +53,7 @@ static unsigned char DefHighCol[8+320+8];
|
|||
unsigned char *HighColBase = DefHighCol;
|
||||
int HighColIncrement;
|
||||
|
||||
static u16 DefOutBuff[320*2];
|
||||
static u16 DefOutBuff[320*2] ALIGNED(4);
|
||||
void *DrawLineDestBase = DefOutBuff;
|
||||
int DrawLineDestIncrement;
|
||||
|
||||
|
@ -200,7 +200,7 @@ TileFlipMaker(TileFlipNonSH, pix_nonsh)
|
|||
// draw sprite pixels, process operator colors
|
||||
#define pix_sh(x) \
|
||||
if (likely(t)) \
|
||||
pd[x]=(likely(t<0xe) ? pal|t : pd[x]|((t-1)<<6));
|
||||
pd[x]=(likely(t<0xe) ? pal|t : pd[x]|((t-1)<<6))
|
||||
|
||||
TileNormMaker(TileNormSH, pix_sh)
|
||||
TileFlipMaker(TileFlipSH, pix_sh)
|
||||
|
@ -208,7 +208,7 @@ TileFlipMaker(TileFlipSH, pix_sh)
|
|||
// draw sprite pixels, mark but don't process operator colors
|
||||
#define pix_sh_markop(x) \
|
||||
if (likely(t)) \
|
||||
pd[x]=(likely(t<0xe) ? pal|t : pd[x]|0x40);
|
||||
pd[x]=(likely(t<0xe) ? pal|t : pd[x]|0x40)
|
||||
|
||||
TileNormMaker(TileNormSH_markop, pix_sh_markop)
|
||||
TileFlipMaker(TileFlipSH_markop, pix_sh_markop)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue