Byteswap the palette (for macs).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@972 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
638fad7d95
commit
9d65df9b4d
1 changed files with 4 additions and 0 deletions
|
@ -243,6 +243,10 @@ void GLVID_SetPalette (unsigned char *palette)
|
|||
}
|
||||
d_8to24rgbtable[255] &= 0xffffff; // 255 is transparent
|
||||
}
|
||||
|
||||
if (LittleLong(1) != 1)
|
||||
for (i=0 ; i<256 ; i++)
|
||||
d_8to24rgbtable[i] = LittleLong(d_8to24rgbtable[i]);
|
||||
}
|
||||
void GLVID_ShiftPalette (unsigned char *palette)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue