diff options
author | Kari Salminen | 2008-07-27 22:50:36 +0000 |
---|---|---|
committer | Kari Salminen | 2008-07-27 22:50:36 +0000 |
commit | 06a45c49c79056ef6ae81cc9f846ebddf07d03bc (patch) | |
tree | af5e649a4aba22acfb2fd5dcbc5bf6ae9a44c748 /engines/cine/gfx.h | |
parent | 2f0a40a6971a73737e16ecd46fda3b78c4c7b04e (diff) | |
download | scummvm-rg350-06a45c49c79056ef6ae81cc9f846ebddf07d03bc.tar.gz scummvm-rg350-06a45c49c79056ef6ae81cc9f846ebddf07d03bc.tar.bz2 scummvm-rg350-06a45c49c79056ef6ae81cc9f846ebddf07d03bc.zip |
Added a preliminary saving routine for Operation Stealth (Disabled by default, needs more work still. WIP!).
Added backgrounds' name saving (8 names in Operation Stealth instead of just 1 like in Future Wars).
Added 256 color palette saving and restoring (One of the palettes isn't properly handled yet though).
svn-id: r33349
Diffstat (limited to 'engines/cine/gfx.h')
-rw-r--r-- | engines/cine/gfx.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/cine/gfx.h b/engines/cine/gfx.h index 910a4326e9..d2cdd2ddf6 100644 --- a/engines/cine/gfx.h +++ b/engines/cine/gfx.h @@ -109,12 +109,12 @@ public: virtual void selectScrollBg(unsigned int idx); virtual void setScroll(unsigned int shift); virtual void removeBg(unsigned int idx); - void saveBg(Common::OutSaveFile &fHandle); + virtual void saveBgNames(Common::OutSaveFile &fHandle); virtual void refreshPalette(); virtual void reloadPalette(); - void restorePalette(Common::SeekableReadStream &fHandle); - void savePalette(Common::OutSaveFile &fHandle); + virtual void restorePalette(Common::SeekableReadStream &fHandle); + virtual void savePalette(Common::OutSaveFile &fHandle); virtual void rotatePalette(int a, int b, int c); virtual void transformPalette(int first, int last, int r, int g, int b); @@ -128,6 +128,7 @@ public: */ class OSRenderer : public FWRenderer { private: + // FIXME: Background table's size is probably 8 instead of 9. Check to make sure and correct if necessary. palBg _bgTable[9]; ///< Table of backgrounds loaded into renderer byte *_activeHiPal; ///< Active 256 color palette unsigned int _currentBg; ///< Current background @@ -164,9 +165,12 @@ public: void selectScrollBg(unsigned int idx); void setScroll(unsigned int shift); void removeBg(unsigned int idx); + void saveBgNames(Common::OutSaveFile &fHandle); void refreshPalette(); void reloadPalette(); + void restorePalette(Common::SeekableReadStream &fHandle); + void savePalette(Common::OutSaveFile &fHandle); void rotatePalette(int a, int b, int c); void transformPalette(int first, int last, int r, int g, int b); |