From 0ec0b1d4981e227fddd03bf7d5be7077a445baae Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 25 Jun 2009 01:29:41 +0000 Subject: Implement palette fading for 16 color version of Kyrandia 1. svn-id: r41846 --- engines/kyra/screen_lok.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/kyra/screen_lok.h') 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]; -- cgit v1.2.3