From 430d5be5bfff2ef69165a96270aba8c80a93897f Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sun, 13 Mar 2016 13:28:14 -0500 Subject: [PATCH] SCI32: Add note about kCantBeHere rect --- engines/sci/graphics/compare.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/sci/graphics/compare.cpp b/engines/sci/graphics/compare.cpp index 8b2d5e247a88..729eeeaf8171 100644 --- a/engines/sci/graphics/compare.cpp +++ b/engines/sci/graphics/compare.cpp @@ -158,6 +158,10 @@ reg_t GfxCompare::kernelCanBeHere(reg_t curObject, reg_t listReference) { } reg_t GfxCompare::kernelCantBeHere32(const reg_t curObject, const reg_t listReference) const { + // Most of SCI32 graphics code converts rects from the VM to exclusive + // rects before operating on them, but this call leverages SCI16 engine + // code that operates on inclusive rects, so the rect's bottom-right + // point is not modified like in other SCI32 kernel calls Common::Rect checkRect( readSelectorValue(_segMan, curObject, SELECTOR(brLeft)), readSelectorValue(_segMan, curObject, SELECTOR(brTop)),