diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/video/robot_decoder.cpp | 4 |
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)); } |