- 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 WhiteIndex, BlackIndex;
int alphaThreshold; int alphaThreshold;
ColorTable256k RGB256k; ColorTable256k RGB256k;
_BasePalette BasePalette;
int BestColor(int r, int g, int b, int first, int num) 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) PalEntry operator[](int index)
{ {
@ -154,5 +154,7 @@ namespace ImageHelpers
palette[index * 3 + 2] palette[index * 3 + 2]
); );
} }
} BasePalette; };
extern _BasePalette BasePalette;
} }