[Scummvm-git-logs] scummvm master -> 9ceb2e858658cac3c7e4d592c3fa6f59a5776b9a

lskovlun lskovlun at sprogklog.dk
Tue Dec 25 03:37:08 CET 2018


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:
9ceb2e8586 SCI: Fix Robot bounding box calculation


Commit: 9ceb2e858658cac3c7e4d592c3fa6f59a5776b9a
    https://github.com/scummvm/scummvm/commit/9ceb2e858658cac3c7e4d592c3fa6f59a5776b9a
Author: Lars Skovlund (lskovlun at sprogklog.dk)
Date: 2018-12-25T03:33:47+01:00

Commit Message:
SCI: Fix Robot bounding box calculation

Fixes bug #10700, at least partially.

Changed paths:
    engines/sci/video/robot_decoder.cpp


diff --git a/engines/sci/video/robot_decoder.cpp b/engines/sci/video/robot_decoder.cpp
index 4711a97..8a0948d 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));
 	}





More information about the Scummvm-git-logs mailing list