diff options
author | Johannes Schickel | 2016-03-21 02:50:15 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-03-21 16:24:14 +0100 |
commit | fc17d9750f08102bd13b6b7a5c5bb340b0a913bc (patch) | |
tree | 70b5ecd97bcb7040ad1be2f528c84124dcfaf22a /engines/sherlock/screen.h | |
parent | 892aa2886cee1ccf829e90fc72a941de22c49467 (diff) | |
download | scummvm-rg350-fc17d9750f08102bd13b6b7a5c5bb340b0a913bc.tar.gz scummvm-rg350-fc17d9750f08102bd13b6b7a5c5bb340b0a913bc.tar.bz2 scummvm-rg350-fc17d9750f08102bd13b6b7a5c5bb340b0a913bc.zip |
SHERLOCK: Make Screen::_backBuffer protected.
Diffstat (limited to 'engines/sherlock/screen.h')
-rw-r--r-- | engines/sherlock/screen.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/engines/sherlock/screen.h b/engines/sherlock/screen.h index ceeb1297a3..50aec0a5e1 100644 --- a/engines/sherlock/screen.h +++ b/engines/sherlock/screen.h @@ -49,9 +49,10 @@ private: int _oldFadePercent; protected: SherlockEngine *_vm; + Surface *_backBuffer; + public: Surface _backBuffer1, _backBuffer2; - Surface *_backBuffer; bool _fadeStyle; byte _cMap[PALETTE_SIZE]; byte _sMap[PALETTE_SIZE]; @@ -64,6 +65,21 @@ public: virtual ~Screen(); /** + * Obtain the currently active back buffer. + */ + Surface *getBackBuffer() const { return _backBuffer; } + + /** + * Makes first back buffer active. + */ + void activateBackBuffer1() { _backBuffer = &_backBuffer1; } + + /** + * Makes second back buffer active. + */ + void activateBackBuffer2() { _backBuffer = &_backBuffer2; } + + /** * Fades from the currently active palette to the passed palette */ int equalizePalette(const byte palette[PALETTE_SIZE]); |