[Scummvm-cvs-logs] scummvm master -> d1100ac508fccbe69f4f527d6c86f158b6c4ac3e
dreammaster
dreammaster at scummvm.org
Mon Jun 2 03:22:23 CEST 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d1100ac508 MADS: Fix calculating dimensions for dynamic hotspots
Commit: d1100ac508fccbe69f4f527d6c86f158b6c4ac3e
https://github.com/scummvm/scummvm/commit/d1100ac508fccbe69f4f527d6c86f158b6c4ac3e
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2014-06-01T21:21:47-04:00
Commit Message:
MADS: Fix calculating dimensions for dynamic hotspots
Changed paths:
engines/mads/sequence.cpp
diff --git a/engines/mads/sequence.cpp b/engines/mads/sequence.cpp
index f987595..34606bb 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;
}
More information about the Scummvm-git-logs
mailing list