aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2016-02-21 21:12:13 +0100
committerWillem Jan Palenstijn2016-02-21 21:12:13 +0100
commit93af01a58acf6dcb3bb7e6efcb62662192258e4e (patch)
tree0145c6922b211867b59fac9437c48a1673f5d819
parent86a88864095fb77af7572973016a2ef0b715d25e (diff)
downloadscummvm-rg350-93af01a58acf6dcb3bb7e6efcb62662192258e4e.tar.gz
scummvm-rg350-93af01a58acf6dcb3bb7e6efcb62662192258e4e.tar.bz2
scummvm-rg350-93af01a58acf6dcb3bb7e6efcb62662192258e4e.zip
SCI32: Comment splitRects
-rw-r--r--engines/sci/graphics/frameout.cpp4
1 files changed, 4 insertions, 0 deletions
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;