aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/screen.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-25 22:23:53 -0400
committerPaul Gilbert2015-03-25 22:23:53 -0400
commitb280d72ab8de6f6fe77d0957de1b651b9fdb264c (patch)
tree1626b6f746ec9a60b3f087956f5a62e678b18e10 /engines/sherlock/screen.cpp
parentfc7f8024beb4e3a0ee2b6def649ca1a3e91fa899 (diff)
downloadscummvm-rg350-b280d72ab8de6f6fe77d0957de1b651b9fdb264c.tar.gz
scummvm-rg350-b280d72ab8de6f6fe77d0957de1b651b9fdb264c.tar.bz2
scummvm-rg350-b280d72ab8de6f6fe77d0957de1b651b9fdb264c.zip
SHERLOCK: Sprite positioning fixes
Diffstat (limited to 'engines/sherlock/screen.cpp')
-rw-r--r--engines/sherlock/screen.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/sherlock/screen.cpp b/engines/sherlock/screen.cpp
index 7c222f3e24..098d43e827 100644
--- a/engines/sherlock/screen.cpp
+++ b/engines/sherlock/screen.cpp
@@ -287,8 +287,12 @@ void Screen::flushImage(ImageFrame *frame, const Common::Point &pt,
// See if the areas of the old and new overlap, and if so combine the areas
if (newBounds.intersects(oldBounds)) {
- newBounds.extend(oldBounds);
- slamRect(newBounds);
+ Common::Rect mergedBounds = newBounds;
+ mergedBounds.extend(oldBounds);
+ mergedBounds.right += 1;
+ mergedBounds.bottom += 1;
+
+ slamRect(mergedBounds);
} else {
// The two areas are independent, so copy them both
slamRect(newBounds);