aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorColin Snover2016-03-13 13:28:14 -0500
committerColin Snover2016-03-13 13:28:14 -0500
commit430d5be5bfff2ef69165a96270aba8c80a93897f (patch)
tree30a8327a9d70288d1c7f2a7f7d2d15877ff0c0b5 /engines/sci/graphics
parent80098c842342111fc8d7738856d5bde426f4f7c6 (diff)
downloadscummvm-rg350-430d5be5bfff2ef69165a96270aba8c80a93897f.tar.gz
scummvm-rg350-430d5be5bfff2ef69165a96270aba8c80a93897f.tar.bz2
scummvm-rg350-430d5be5bfff2ef69165a96270aba8c80a93897f.zip
SCI32: Add note about kCantBeHere rect
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/compare.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/graphics/compare.cpp b/engines/sci/graphics/compare.cpp
index 8b2d5e247a..729eeeaf81 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)),