From 93af01a58acf6dcb3bb7e6efcb62662192258e4e Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sun, 21 Feb 2016 21:12:13 +0100 Subject: SCI32: Comment splitRects --- engines/sci/graphics/frameout.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp index 7893fc4031..ccce8ef046 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; -- cgit v1.2.3