SCI32: Add note about kCantBeHere rect

This commit is contained in:
Colin Snover 2016-03-13 13:28:14 -05:00
parent 80098c8423
commit 430d5be5bf

View File

@ -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)),