- replaced homegrown SWORD, SBYTE and uint32_t types.
This commit is contained in:
parent
cc1241a4b8
commit
c008ddaf66
61 changed files with 235 additions and 238 deletions
|
|
@ -105,7 +105,7 @@ static BYTE *GetVoxelRemap(const BYTE *pal)
|
|||
{
|
||||
// The voxel palette uses VGA colors, so we have to expand it
|
||||
// from 6 to 8 bits per component.
|
||||
remap[i] = BestColor((uint32 *)GPalette.BaseColors,
|
||||
remap[i] = BestColor((uint32_t *)GPalette.BaseColors,
|
||||
(oldpal[i*3 + 0] << 2) | (oldpal[i*3 + 0] >> 4),
|
||||
(oldpal[i*3 + 1] << 2) | (oldpal[i*3 + 1] >> 4),
|
||||
(oldpal[i*3 + 2] << 2) | (oldpal[i*3 + 2] >> 4));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue