diff options
author | Johannes Schickel | 2009-06-22 02:36:54 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-06-22 02:36:54 +0000 |
commit | 73ea378dee4e7ec31c7a898e7fcc3a65a9eb6cc1 (patch) | |
tree | 6d00cd2c533aeefb72d874f59aa01b9d0e918db5 /engines/kyra/screen.h | |
parent | 4bb392b593c492299dd916784548dc56bc0b25cb (diff) | |
download | scummvm-rg350-73ea378dee4e7ec31c7a898e7fcc3a65a9eb6cc1.tar.gz scummvm-rg350-73ea378dee4e7ec31c7a898e7fcc3a65a9eb6cc1.tar.bz2 scummvm-rg350-73ea378dee4e7ec31c7a898e7fcc3a65a9eb6cc1.zip |
- Changed the following Screen functions to take a reference to a Palette object:
-> setScreenPalette
-> fadePalette
-> getFadeParams
-> fadePalStep
- Fixed initialization of 256 color palettes
svn-id: r41743
Diffstat (limited to 'engines/kyra/screen.h')
-rw-r--r-- | engines/kyra/screen.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/kyra/screen.h b/engines/kyra/screen.h index dab50a54f5..706f54a9d2 100644 --- a/engines/kyra/screen.h +++ b/engines/kyra/screen.h @@ -223,13 +223,12 @@ public: void fadeFromBlack(int delay=0x54, const UpdateFunctor *upFunc = 0); void fadeToBlack(int delay=0x54, const UpdateFunctor *upFunc = 0); - void fadePalette(const uint8 *palData, int delay, const UpdateFunctor *upFunc = 0); - virtual void getFadeParams(const uint8 *palette, int delay, int &delayInc, int &diff); - int fadePalStep(const uint8 *palette, int diff); + void fadePalette(const Palette &pal, int delay, const UpdateFunctor *upFunc = 0); + virtual void getFadeParams(const Palette &pal, int delay, int &delayInc, int &diff); + int fadePalStep(const Palette &pal, int diff); void setPaletteIndex(uint8 index, uint8 red, uint8 green, uint8 blue); - void setScreenPalette(const uint8 *palData); - const uint8 *getScreenPalette() const { return _screenPalette->getData(); } + void setScreenPalette(const Palette &pal); void getRealPalette(int num, uint8 *dst); Palette &getPalette(int num); @@ -362,6 +361,7 @@ protected: Palette *_screenPalette; Palette *_palettes[7]; + Palette *_tempPalette; Font _fonts[FID_NUM]; uint8 _textColorsMap[16]; |