aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/compare.cpp
diff options
context:
space:
mode:
authorMax Horn2010-02-05 22:56:05 +0000
committerMax Horn2010-02-05 22:56:05 +0000
commitb0b89e788b9fb5cbeb58c73f7adef4473f4211ed (patch)
tree5e944a227dd4c8e4132e60c782d365b2f79c53ce /engines/sci/graphics/compare.cpp
parentd2871f925af38da89362b45edac43dbed5c925f5 (diff)
downloadscummvm-rg350-b0b89e788b9fb5cbeb58c73f7adef4473f4211ed.tar.gz
scummvm-rg350-b0b89e788b9fb5cbeb58c73f7adef4473f4211ed.tar.bz2
scummvm-rg350-b0b89e788b9fb5cbeb58c73f7adef4473f4211ed.zip
SCI: Document GfxCompare::canBeHereCheckRectList; pass Common::Rect by ref
svn-id: r47920
Diffstat (limited to 'engines/sci/graphics/compare.cpp')
-rw-r--r--engines/sci/graphics/compare.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/compare.cpp b/engines/sci/graphics/compare.cpp
index 697324f975..695752f409 100644
--- a/engines/sci/graphics/compare.cpp
+++ b/engines/sci/graphics/compare.cpp
@@ -46,7 +46,7 @@ GfxCompare::GfxCompare(SegManager *segMan, Kernel *kernel, GfxCache *cache, GfxS
GfxCompare::~GfxCompare() {
}
-uint16 GfxCompare::isOnControl(uint16 screenMask, Common::Rect rect) {
+uint16 GfxCompare::isOnControl(uint16 screenMask, const Common::Rect &rect) {
int16 x, y;
uint16 result = 0;
@@ -76,7 +76,7 @@ static inline int sign_extend_byte(int value) {
return value;
}
-bool GfxCompare::canBeHereCheckRectList(reg_t checkObject, Common::Rect checkRect, List *list) {
+bool GfxCompare::canBeHereCheckRectList(reg_t checkObject, const Common::Rect &checkRect, List *list) {
reg_t curAddress = list->first;
Node *curNode = _segMan->lookupNode(curAddress);
reg_t curObject;
@@ -112,7 +112,7 @@ bool GfxCompare::canBeHereCheckRectList(reg_t checkObject, Common::Rect checkRec
return true;
}
-uint16 GfxCompare::kernelOnControl(byte screenMask, Common::Rect rect) {
+uint16 GfxCompare::kernelOnControl(byte screenMask, const Common::Rect &rect) {
Common::Rect adjustedRect = _coordAdjuster->onControl(rect);
uint16 result = isOnControl(screenMask, adjustedRect);