mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- properly define the BasePalette wrapper.
This commit is contained in:
parent
ae9ad6612c
commit
c34d9da783
2 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue