mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 10:17:22 +00:00
SCI32: Comment splitRects
This commit is contained in:
parent
86a8886409
commit
93af01a58a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user