diff options
author | Paul Gilbert | 2014-08-10 11:47:15 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-10 11:47:15 -0400 |
commit | cce0c2ff97878b2b0b8a87e25395c3ef98bc584e (patch) | |
tree | 5a63d87c97114e834d90bb0d43adbea8cb0f2176 /engines/access/screen.h | |
parent | 00901b200bffcbff69694ff6b54d55908fd74180 (diff) | |
download | scummvm-rg350-cce0c2ff97878b2b0b8a87e25395c3ef98bc584e.tar.gz scummvm-rg350-cce0c2ff97878b2b0b8a87e25395c3ef98bc584e.tar.bz2 scummvm-rg350-cce0c2ff97878b2b0b8a87e25395c3ef98bc584e.zip |
ACCESS: Adding sprite resources and screen saving
Diffstat (limited to 'engines/access/screen.h')
-rw-r--r-- | engines/access/screen.h | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/engines/access/screen.h b/engines/access/screen.h index a2eac29312..8dc56d273c 100644 --- a/engines/access/screen.h +++ b/engines/access/screen.h @@ -35,6 +35,18 @@ class AccessEngine; #define PALETTE_COUNT 256 #define PALETTE_SIZE (256 * 3) +struct ScreenSave { + int _clipWidth; + int _clipHeight; + int _windowXAdd; + int _windowYAdd; + Common::Point _scroll; + int _scrollCol; + int _scrollRow; + Common::Point _bufferStart; + int _screenYOff; +}; + class Screen: public ASurface { private: AccessEngine *_vm; @@ -45,14 +57,9 @@ private: Common::Point _msVirtualOffset; Common::Point _virtualOffsetsTable[4]; bool _hideFlag; - Common::Rect _lastBounds; - int _leftSkip, _rightSkip; - int _topSkip, _bottomSkip; - int _clipWidth, _clipHeight; + ScreenSave _screenSave; void updatePalette(); - - bool clip(Common::Rect &r); public: int _vesaMode; bool _loadPalFlag; @@ -60,8 +67,11 @@ public: int _scrollThreshold; int _startColor, _numColors; Common::Point _vWindowSize; + Common::Point _bufferStart; int _scrollX, _scrollY; int _scrollCol, _scrollRow; + int _windowXAdd, _windowYAdd; + int _screenYOff; byte _manPal[0x60]; byte _scaleTable1[256]; byte _scaleTable2[256]; @@ -70,8 +80,6 @@ public: void setDisplayScan(); - void restoreScan(); - void setPanel(int num); /** @@ -109,8 +117,6 @@ public: */ void copyBuffer(const byte *data); - void plotImage(const byte *pData, int idx, const Common::Point &pt); - void checkScroll(); void copyBF1BF2(); @@ -127,7 +133,15 @@ public: void setScaleTable(int scale); + /** + * Save all the screen display state variables + */ void saveScreen(); + + /** + * Restores previously saved screen display state variables + */ + void restoreScreen(); }; } // End of namespace Access |