diff options
author | Paul Gilbert | 2011-04-14 22:59:11 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-04-15 21:28:53 +1000 |
commit | 54e6941ec408110ef9b8f91bc0ba3699a9bc8f58 (patch) | |
tree | e163ccd62e9ab9696450df210fe3b278defa8280 /engines/tsage/core.h | |
parent | dd6ab8d306ed1f8b3e999ae753d5777e1dcaed5c (diff) | |
download | scummvm-rg350-54e6941ec408110ef9b8f91bc0ba3699a9bc8f58.tar.gz scummvm-rg350-54e6941ec408110ef9b8f91bc0ba3699a9bc8f58.tar.bz2 scummvm-rg350-54e6941ec408110ef9b8f91bc0ba3699a9bc8f58.zip |
TSAGE: Changed palette code back to using a byte array
Diffstat (limited to 'engines/tsage/core.h')
-rw-r--r-- | engines/tsage/core.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/tsage/core.h b/engines/tsage/core.h index 13ab361ed1..6508d1576a 100644 --- a/engines/tsage/core.h +++ b/engines/tsage/core.h @@ -319,7 +319,7 @@ public: class PaletteModifierCached: public PaletteModifier { public: - RGB8 _palette[256]; + byte _palette[256 * 3]; int _step; int _percent; @@ -355,7 +355,7 @@ public: class PaletteFader: public PaletteModifierCached { public: - RGB8 _palette[256]; + byte _palette[256 * 3]; public: virtual Common::String getClassName() { return "PaletteFader"; } virtual void synchronise(Serialiser &s); @@ -369,7 +369,7 @@ enum FadeMode {FADEMODE_NONE = 0, FADEMODE_GRADUAL = 1, FADEMODE_IMMEDIATE = 2}; class ScenePalette : public SavedObject { public: - RGB8 _palette[256]; + byte _palette[256 * 3]; GfxColors _colors; SynchronisedList<PaletteModifier *> _listeners; int _field412; @@ -393,7 +393,7 @@ public: void clearListeners(); void fade(const byte *adjustData, bool fullAdjust, int percent); PaletteRotation *addRotation(int start, int end, int rotationMode, int duration = 0, Action *action = NULL); - PaletteFader *addFader(RGB8 *arrBufferRGB, int palSize, int percent, Action *action); + PaletteFader *addFader(const byte *arrBufferRGB, int palSize, int percent, Action *action); static void changeBackground(const Rect &bounds, FadeMode fadeMode); |