- allow passing a remap table to BestColor.
This commit is contained in:
parent
13bdd324e1
commit
4614ce41cd
6 changed files with 18 additions and 18 deletions
|
|
@ -74,7 +74,7 @@ static uint8_t *GetVoxelRemap(const uint8_t *pal)
|
|||
{
|
||||
// The voxel palette uses VGA colors, so we have to expand it
|
||||
// from 6 to 8 bits per component.
|
||||
remap[i] = BestColor((uint32_t *)GPalette.BaseColors,
|
||||
remap[i] = ColorMatcher.Pick(
|
||||
(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