CRYOMNI3D: Let change individual color in main palette

This commit is contained in:
Le Philousophe 2019-03-10 17:25:34 +01:00 committed by Eugene Sandulenko
parent 812d75e4e4
commit 6e692195c8
2 changed files with 8 additions and 0 deletions

View File

@ -339,6 +339,13 @@ void CryOmni3DEngine_Versailles::setupPalette(const byte *palette, uint start, u
}
}
void CryOmni3DEngine_Versailles::setMainPaletteColor(byte color, byte red, byte green, byte blue) {
_mainPalette[3 * color + 0] = red;
_mainPalette[3 * color + 1] = green;
_mainPalette[3 * color + 2] = blue;
setPalette(_mainPalette, 0, 256);
}
struct transparentScore {
unsigned int score;
byte redScaled;

View File

@ -311,6 +311,7 @@ private:
typedef void (CryOmni3DEngine_Versailles::*DisplayObjectHook)(Graphics::ManagedSurface &surface);
void displayObject(const Common::String &imgName, DisplayObjectHook hook = nullptr);
void setMainPaletteColor(byte color, byte red, byte green, byte blue);
void setupPalette(const byte *colors, uint start, uint num, bool commit);
bool showSubtitles() const;