diff options
author | Johannes Schickel | 2009-06-25 01:29:41 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-06-25 01:29:41 +0000 |
commit | 0ec0b1d4981e227fddd03bf7d5be7077a445baae (patch) | |
tree | 838a97933c32751506c8cd2cdcd105b908471902 /engines/kyra/screen_lok.h | |
parent | 857ee03c7d28dc10969193a0e42283621350289e (diff) | |
download | scummvm-rg350-0ec0b1d4981e227fddd03bf7d5be7077a445baae.tar.gz scummvm-rg350-0ec0b1d4981e227fddd03bf7d5be7077a445baae.tar.bz2 scummvm-rg350-0ec0b1d4981e227fddd03bf7d5be7077a445baae.zip |
Implement palette fading for 16 color version of Kyrandia 1.
svn-id: r41846
Diffstat (limited to 'engines/kyra/screen_lok.h')
-rw-r--r-- | engines/kyra/screen_lok.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/kyra/screen_lok.h b/engines/kyra/screen_lok.h index 582830636b..098fd1e389 100644 --- a/engines/kyra/screen_lok.h +++ b/engines/kyra/screen_lok.h @@ -83,6 +83,10 @@ public: void setScreenPalette(const Palette &pal); + void fadePalette(const Palette &pal, int delay, const UpdateFunctor *upFunc = 0); + void getFadeParams(const Palette &pal, int delay, int &delayInc, int &diff); + int fadePalStep(const Palette &pal, int diff); + void setMouseCursor(int x, int y, const byte *shape); private: void updateDirtyRectsOvl(); @@ -90,6 +94,8 @@ private: void convertTo16Colors(uint8 *page, int w, int h, int pitch, int keyColor = -1); void mergeOverlay(int x, int y, int w, int h); + void set16ColorPalette(const uint8 *pal); + void paletteMap(uint8 idx, int r, int g, int b); uint8 _paletteMap[1024]; |