aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorPaul Gilbert2014-06-01 21:21:47 -0400
committerPaul Gilbert2014-06-01 21:21:47 -0400
commitd1100ac508fccbe69f4f527d6c86f158b6c4ac3e (patch)
tree45ab805002ad28ec2201443eae23f889b0c83021 /engines/mads
parent0dddc2053071aec1e276a7dcd8402d5b0e0ca270 (diff)
downloadscummvm-rg350-d1100ac508fccbe69f4f527d6c86f158b6c4ac3e.tar.gz
scummvm-rg350-d1100ac508fccbe69f4f527d6c86f158b6c4ac3e.tar.bz2
scummvm-rg350-d1100ac508fccbe69f4f527d6c86f158b6c4ac3e.zip
MADS: Fix calculating dimensions for dynamic hotspots
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/sequence.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/sequence.cpp b/engines/mads/sequence.cpp
index f987595f05..34606bb2bf 100644
--- a/engines/mads/sequence.cpp
+++ b/engines/mads/sequence.cpp
@@ -259,8 +259,8 @@ bool SequenceList::loadSprites(int seqIndex) {
dynHotspot._bounds.left = MAX(pt.x - width, 0);
dynHotspot._bounds.top = MAX(pt.y - height, 0);
- dynHotspot._bounds.right = dynHotspot._bounds.left + width;
- dynHotspot._bounds.bottom = dynHotspot._bounds.top + height;
+ dynHotspot._bounds.right = dynHotspot._bounds.left + width + 1;
+ dynHotspot._bounds.bottom = dynHotspot._bounds.top + height + 1;
scene._dynamicHotspots._changed = true;
}