Add function to check for default colours

This commit is contained in:
G.K.MacGregor
2020-12-18 22:07:27 +00:00
parent 19be00f4fe
commit df22fda290
3 changed files with 39 additions and 33 deletions

View File

@@ -81,6 +81,8 @@ public:
void setBlackBackgroundSubst(bool);
int CLUT(int index, int renderLevel=3) const;
void setCLUT(int, int);
bool isPaletteDefault(int) const;
bool isPaletteDefault(int, int) const;
bool leftSidePanelDisplayed() const { return m_leftSidePanelDisplayed; }
void setLeftSidePanelDisplayed(bool);
bool rightSidePanelDisplayed() const { return m_rightSidePanelDisplayed; }
@@ -125,11 +127,11 @@ private:
X26Triplet m_paddingX26Triplet;
const int defaultCLUT[32] = {
0x000, 0xf00, 0x0f0, 0xff0, 0x00f, 0xf0f, 0x0ff, 0xfff,
0x000, 0x700, 0x070, 0x770, 0x007, 0x707, 0x077, 0x777,
0xf05, 0xf70, 0x0f7, 0xffb, 0x0ca, 0x500, 0x652, 0xc77,
0x333, 0xf77, 0x7f7, 0xff7, 0x77f, 0xf7f, 0x7ff, 0xddd
const int m_defaultCLUT[32] = {
0x000, 0xf00, 0x0f0, 0xff0, 0x00f, 0xf0f, 0x0ff, 0xfff,
0x000, 0x700, 0x070, 0x770, 0x007, 0x707, 0x077, 0x777,
0xf05, 0xf70, 0x0f7, 0xffb, 0x0ca, 0x500, 0x652, 0xc77,
0x333, 0xf77, 0x7f7, 0xff7, 0x77f, 0xf7f, 0x7ff, 0xddd
};
};