aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/screen.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-31 16:28:41 -0400
committerPaul Gilbert2015-05-31 16:28:41 -0400
commitc822e849de786f1b1be2dfbcdd3364d0b33c7297 (patch)
tree6b591c3c2c609168ba0c10e319aa850f2a7922cf /engines/sherlock/screen.cpp
parentb01dee457a6adc2a9871e7a6007289fb7193903f (diff)
downloadscummvm-rg350-c822e849de786f1b1be2dfbcdd3364d0b33c7297.tar.gz
scummvm-rg350-c822e849de786f1b1be2dfbcdd3364d0b33c7297.tar.bz2
scummvm-rg350-c822e849de786f1b1be2dfbcdd3364d0b33c7297.zip
SHERLOCK: Move scroll variables from Screen to TattooUserInterface
Diffstat (limited to 'engines/sherlock/screen.cpp')
-rw-r--r--engines/sherlock/screen.cpp23
1 files changed, 10 insertions, 13 deletions
diff --git a/engines/sherlock/screen.cpp b/engines/sherlock/screen.cpp
index a3af5559c7..708493cd30 100644
--- a/engines/sherlock/screen.cpp
+++ b/engines/sherlock/screen.cpp
@@ -44,10 +44,6 @@ Screen::Screen(SherlockEngine *vm) : Surface(g_system->getWidth(), g_system->get
// Rose Tattoo specific fields
_fadeBytesRead = _fadeBytesToRead = 0;
_oldFadePercent = 0;
- _scrollSize = 0;
- _scrollSpeed = 0;
- _currentScroll = 0;
- _targetScroll = 0;
_flushScreen = false;
}
@@ -310,6 +306,16 @@ void Screen::flushScaleImage(ImageFrame *frame, const Common::Point &pt, int16 *
*height = newBounds.height();
}
+void Screen::blockMove(const Common::Rect &r, const Common::Point &scrollPos) {
+ Common::Rect bounds = r;
+ bounds.translate(scrollPos.x, scrollPos.y);
+ slamRect(bounds);
+}
+
+void Screen::blockMove(const Common::Point &scrollPos) {
+ blockMove(Common::Rect(0, 0, w(), h()), scrollPos);
+}
+
void Screen::print(const Common::Point &pt, byte color, const char *formatStr, ...) {
// Create the string to display
va_list args;
@@ -491,15 +497,6 @@ void Screen::setupBGArea(const byte cMap[PALETTE_SIZE]) {
warning("TODO");
}
-/**
- * Initializes scroll variables
- */
-void Screen::initScrollVars() {
- _scrollSize = 0;
- _currentScroll = 0;
- _targetScroll = 0;
-}
-
void Screen::translatePalette(byte palette[PALETTE_SIZE]) {
for (int idx = 0; idx < PALETTE_SIZE; ++idx)
palette[idx] = VGA_COLOR_TRANS(palette[idx]);