mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-10-16 01:03:37 -04:00
resolved palette house color issue .
This commit is contained in:
parent
79856fabd8
commit
bdb9c28fe0
6 changed files with 36 additions and 20 deletions
|
@ -29,8 +29,8 @@ public:
|
|||
class Palette
|
||||
{
|
||||
public:
|
||||
Palette(const BytePalette& bytes);
|
||||
Palette(HTSPALETTE raw);
|
||||
Palette(const BytePalette& bytes, bool remappable = false);
|
||||
Palette(HTSPALETTE raw, bool remappable = false);
|
||||
|
||||
BGRStruct& operator[](int index) { return Data[index]; }
|
||||
ColorStruct GetByteColor(int index) {
|
||||
|
@ -42,9 +42,11 @@ public:
|
|||
return ret;
|
||||
}
|
||||
const BGRStruct* GetData() const { return Data; }
|
||||
bool IsRemappable() const { return Remappable; }
|
||||
|
||||
private:
|
||||
BGRStruct Data[256];
|
||||
BGRStruct Data[256]{};
|
||||
bool Remappable{};
|
||||
};
|
||||
|
||||
class Palettes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue