mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +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)
|
||||
{
|
||||
|
@ -154,5 +154,7 @@ namespace ImageHelpers
|
|||
palette[index * 3 + 2]
|
||||
);
|
||||
}
|
||||
} BasePalette;
|
||||
};
|
||||
|
||||
extern _BasePalette BasePalette;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue