aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Skovlund2018-12-25 03:33:47 +0100
committerLars Skovlund2018-12-25 03:33:47 +0100
commit9ceb2e858658cac3c7e4d592c3fa6f59a5776b9a (patch)
treefe2afa26d8fbde18dfda4cf95b6fff6b04d8a706
parent6383200e340c002495fdf7cef4bdb606c2d7304a (diff)
downloadscummvm-rg350-9ceb2e858658cac3c7e4d592c3fa6f59a5776b9a.tar.gz
scummvm-rg350-9ceb2e858658cac3c7e4d592c3fa6f59a5776b9a.tar.bz2
scummvm-rg350-9ceb2e858658cac3c7e4d592c3fa6f59a5776b9a.zip
SCI: Fix Robot bounding box calculation
Fixes bug #10700, at least partially.
-rw-r--r--engines/sci/video/robot_decoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/video/robot_decoder.cpp b/engines/sci/video/robot_decoder.cpp
index 4711a971a4..8a0948d962 100644
--- a/engines/sci/video/robot_decoder.cpp
+++ b/engines/sci/video/robot_decoder.cpp
@@ -1169,8 +1169,8 @@ bool RobotDecoder::readPartialAudioRecordAndSubmit(const int startFrame, const i
uint16 RobotDecoder::getFrameSize(Common::Rect &outRect) const {
assert(_plane != nullptr);
- outRect.clip(0, 0);
- for (RobotScreenItemList::size_type i = 0; i < _screenItemList.size(); ++i) {
+ outRect = _screenItemList[0]->getNowSeenRect(*_plane);
+ for (RobotScreenItemList::size_type i = 1; i < _screenItemList.size(); ++i) {
ScreenItem &screenItem = *_screenItemList[i];
outRect.extend(screenItem.getNowSeenRect(*_plane));
}