diff options
author | Paul Gilbert | 2015-07-04 11:28:55 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-07-04 11:28:55 -0400 |
commit | 9ca62e6f619fc45b6d305ed46eea439cf78855c9 (patch) | |
tree | 8bb7327818292b230183bb73f23792440ef95bdb /engines/sherlock/screen.h | |
parent | 39544c1728524f3ebc729c8d90ca0f191078d3a4 (diff) | |
download | scummvm-rg350-9ca62e6f619fc45b6d305ed46eea439cf78855c9.tar.gz scummvm-rg350-9ca62e6f619fc45b6d305ed46eea439cf78855c9.tar.bz2 scummvm-rg350-9ca62e6f619fc45b6d305ed46eea439cf78855c9.zip |
SHERLOCK: RT: Consolidate scroll position into the Screen class
Diffstat (limited to 'engines/sherlock/screen.h')
-rw-r--r-- | engines/sherlock/screen.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/engines/sherlock/screen.h b/engines/sherlock/screen.h index 6146e4f177..2e0cef72ca 100644 --- a/engines/sherlock/screen.h +++ b/engines/sherlock/screen.h @@ -82,6 +82,7 @@ public: byte _sMap[PALETTE_SIZE]; byte _tMap[PALETTE_SIZE]; bool _flushScreen; + Common::Point _currentScroll; public: static Screen *init(SherlockEngine *vm); Screen(SherlockEngine *vm); @@ -166,11 +167,6 @@ public: void slamRect(const Common::Rect &r); /** - * Copies a given area to the screen - */ - void slamRect(const Common::Rect &r, const Common::Point ¤tScroll); - - /** * Copy an image from the back buffer to the screen, taking care of both the * new area covered by the shape as well as the old area, which must be restored */ @@ -190,14 +186,14 @@ public: void flushImage(ImageFrame *frame, const Common::Point &pt, Common::Rect &newBounds, int scaleVal); /** - * Copies data from the back buffer to the screen, taking into account scrolling position + * Copies data from the back buffer to the screen */ - void blockMove(const Common::Rect &r, const Common::Point &scrollPos); + void blockMove(const Common::Rect &r); /** - * Copies the entire screen from the back buffer, taking into account scrolling position + * Copies the entire screen from the back buffer */ - void blockMove(const Common::Point &scorllPos); + void blockMove(); /** * Fills an area on the back buffer, and then copies it to the screen |