Few BigEndian fixes from lantus for CPS-1/2

This commit is contained in:
Barry Harris 2012-01-24 16:25:20 +00:00
parent 3030c35f11
commit 7a474ea0e6
2 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ INT32 CpsObjGet()
pof->nShiftX = -CpsSaveFrg[0][0x9];
pof->nShiftY = -CpsSaveFrg[0][0xB];
} else {
INT32 nOff = BURN_ENDIAN_SWAP_INT16(*((UINT16*)(CpsReg + 0x00)) << 8);
INT32 nOff = BURN_ENDIAN_SWAP_INT16(*((UINT16*)(CpsReg + 0x00))) << 8;
nOff &= 0xfff800;
Get = CpsFindGfxRam(nOff, 0x800);

View File

@ -161,7 +161,7 @@ INT32 CpsRunExit()
inline static void GetPalette(INT32 nStart, INT32 nCount)
{
// Update Palette (Ghouls points to the wrong place on boot up I think)
INT32 nPal = BURN_ENDIAN_SWAP_INT16((*((UINT16*)(CpsReg + 0x0A)) << 8)) & 0xFFF800;
INT32 nPal = (BURN_ENDIAN_SWAP_INT16(*((UINT16*)(CpsReg + 0x0A))) << 8) & 0xFFF800;
UINT8* Find = CpsFindGfxRam(nPal, 0x1000);
if (Find) {
@ -171,7 +171,7 @@ inline static void GetPalette(INT32 nStart, INT32 nCount)
static void GetStarPalette()
{
INT32 nPal = (*((UINT16*)(CpsReg + 0x0A)) << 8) & 0xFFF800;
INT32 nPal = (BURN_ENDIAN_SWAP_INT16(*((UINT16*)(CpsReg + 0x0A))) << 8) & 0xFFF800;
UINT8* Find = CpsFindGfxRam(nPal, 256);
if (Find) {