diff options
-rw-r--r-- | engines/cryomni3d/versailles/engine.cpp | 7 | ||||
-rw-r--r-- | engines/cryomni3d/versailles/engine.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/engines/cryomni3d/versailles/engine.cpp b/engines/cryomni3d/versailles/engine.cpp index bb01825551..b9795c28e3 100644 --- a/engines/cryomni3d/versailles/engine.cpp +++ b/engines/cryomni3d/versailles/engine.cpp @@ -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; diff --git a/engines/cryomni3d/versailles/engine.h b/engines/cryomni3d/versailles/engine.h index 34f2c6cb88..e38e57c6a8 100644 --- a/engines/cryomni3d/versailles/engine.h +++ b/engines/cryomni3d/versailles/engine.h @@ -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; |