diff options
author | Oystein Eftevaag | 2007-10-19 22:16:00 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2007-10-19 22:16:00 +0000 |
commit | 41d67964b1c267447e769dcc724d841a8154bd9e (patch) | |
tree | 4efa9c626e6c605111f257b06dcbff0b0b49706e /engines/kyra/screen_v2.h | |
parent | 359efa4f283ede8e8ade82d5cf5bb7d6034ed1dd (diff) | |
download | scummvm-rg350-41d67964b1c267447e769dcc724d841a8154bd9e.tar.gz scummvm-rg350-41d67964b1c267447e769dcc724d841a8154bd9e.tar.bz2 scummvm-rg350-41d67964b1c267447e769dcc724d841a8154bd9e.zip |
Committing [ 1816080 ] KYRA: Intro Patch for HoF, from Florian, with some cleanup and a minor fix
svn-id: r29233
Diffstat (limited to 'engines/kyra/screen_v2.h')
-rw-r--r-- | engines/kyra/screen_v2.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/kyra/screen_v2.h b/engines/kyra/screen_v2.h index 998a18b4db..85ab59bc91 100644 --- a/engines/kyra/screen_v2.h +++ b/engines/kyra/screen_v2.h @@ -41,8 +41,15 @@ public: virtual void setScreenDim(int dim); const ScreenDim *getScreenDim(int dim); - // palette handling - void k2IntroFadeToGrey(int delay=0x54); + // sequence player + void generateGrayOverlay(const uint8 *srcPal, uint8 *grayOverlay, int factor, int addR, int addG, int addB, int lastColor, bool flag); + void applyGrayOverlay(int x, int y, int w, int h, int pageNum, const uint8 *grayOverlay); + int findLeastDifferentColor(const uint8 *paletteEntry, const uint8 *palette, uint16 numColors); + bool calcBounds(int w0, int h0, int &x1, int &y1, int &w1, int &h1, int &x2, int &y2, int &w2); + void wsaFrameAnimationStep(int x1, int y1, int x2, int y2, + int w1, int h1, int w2, int h2, int srcPage, int dstPage, int dim); + void cmpFadeFrameStep(int srcPage, int srcW, int srcH, int srcX, int srcY, int dstPage, + int dstW, int dstH, int dstX, int dstY, int cmpW, int cmpH, int cmpPage); // screen page handling void copyWsaRect(int x, int y, int w, int h, int dimState, int plotFunc, const uint8 *src, @@ -74,6 +81,8 @@ private: static const ScreenDim _screenDimTable[]; static const int _screenDimTableCount; + + uint8 *_wsaFrameAnimBuffer; // maybe subclass screen for kyra3 static const ScreenDim _screenDimTableK3[]; |