- properly define the BasePalette wrapper.

This commit is contained in:
Christoph Oelckers 2020-02-02 07:58:05 +01:00
parent ae9ad6612c
commit c34d9da783
2 changed files with 6 additions and 3 deletions

View file

@ -43,6 +43,7 @@ namespace ImageHelpers
int WhiteIndex, BlackIndex;
int alphaThreshold;
ColorTable256k RGB256k;
_BasePalette BasePalette;
int BestColor(int r, int g, int b, int first, int num)
{

View file

@ -144,7 +144,7 @@ namespace ImageHelpers
}
}
struct
struct _BasePalette
{
PalEntry operator[](int index)
{
@ -152,7 +152,9 @@ namespace ImageHelpers
palette[index * 3 + 0],
palette[index * 3 + 1],
palette[index * 3 + 2]
);
);
}
} BasePalette;
};
extern _BasePalette BasePalette;
}