mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
CRYOMNI3D: Let change individual color in main palette
This commit is contained in:
parent
812d75e4e4
commit
6e692195c8
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user