[Scummvm-cvs-logs] scummvm master -> 93af01a58acf6dcb3bb7e6efcb62662192258e4e
wjp
wjp at usecode.org
Sun Feb 21 21:15:26 CET 2016
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:
93af01a58a SCI32: Comment splitRects
Commit: 93af01a58acf6dcb3bb7e6efcb62662192258e4e
https://github.com/scummvm/scummvm/commit/93af01a58acf6dcb3bb7e6efcb62662192258e4e
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2016-02-21T21:12:13+01:00
Commit Message:
SCI32: Comment splitRects
Changed paths:
engines/sci/graphics/frameout.cpp
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index 7893fc4..ccce8ef 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -472,6 +472,10 @@ void GfxFrameout::frameOut(const bool shouldShowBits, const Common::Rect &rect)
// }
}
+// Determine the parts of 'r' that aren't overlapped by 'other'.
+// Returns -1 if r and other have no intersection.
+// Returns number of returned parts (in outRects) otherwise.
+// (In particular, this returns 0 if r is contained in other.)
int splitRects(Common::Rect r, const Common::Rect &other, Common::Rect(&outRects)[4]) {
if (!r.intersects(other)) {
return -1;
More information about the Scummvm-git-logs
mailing list