SCI32: Comment splitRects

This commit is contained in:
Willem Jan Palenstijn 2016-02-21 21:12:13 +01:00
parent 86a8886409
commit 93af01a58a

View File

@ -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;