From 9ca62e6f619fc45b6d305ed46eea439cf78855c9 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 4 Jul 2015 11:28:55 -0400 Subject: SHERLOCK: RT: Consolidate scroll position into the Screen class --- engines/sherlock/screen.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'engines/sherlock/screen.h') 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); @@ -165,11 +166,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 -- cgit v1.2.3