aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/screen.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-01 22:30:24 -0400
committerPaul Gilbert2015-08-01 22:30:24 -0400
commite00a9f338ca8f3e458793799f7f136eb8e7d4212 (patch)
treebb054ae621be1c336411878c92f82c6ebc4da3ee /engines/sherlock/screen.cpp
parent222de5a2f5fbce178fdcb4f6244bdae20a20847f (diff)
downloadscummvm-rg350-e00a9f338ca8f3e458793799f7f136eb8e7d4212.tar.gz
scummvm-rg350-e00a9f338ca8f3e458793799f7f136eb8e7d4212.tar.bz2
scummvm-rg350-e00a9f338ca8f3e458793799f7f136eb8e7d4212.zip
SHERLOCK: RT: Fix erasing backgrounds when running animations
Diffstat (limited to 'engines/sherlock/screen.cpp')
-rw-r--r--engines/sherlock/screen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sherlock/screen.cpp b/engines/sherlock/screen.cpp
index 13f6fec3fa..7c2b718042 100644
--- a/engines/sherlock/screen.cpp
+++ b/engines/sherlock/screen.cpp
@@ -439,7 +439,8 @@ void Screen::flushScaleImage(ImageFrame *frame, const Common::Point &pt, int16 *
}
void Screen::flushImage(ImageFrame *frame, const Common::Point &pt, Common::Rect &newBounds, int scaleVal) {
- Common::Point newPos, newSize;
+ Common::Point newPos(newBounds.left, newBounds.top);
+ Common::Point newSize(newBounds.width(), newBounds.height());
if (scaleVal == SCALE_THRESHOLD)
flushImage(frame, pt, &newPos.x, &newPos.y, &newSize.x, &newSize.y);