aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-18 18:34:45 +0200
committerEinar Johan Trøan Sømåen2012-07-18 18:34:45 +0200
commit018d8a068f0afe108f8332f40b7b5d49d61ed0c3 (patch)
tree98607b49ed414658a8a5c6d10f08ac4fad426303 /engines/wintermute
parent136ae9857f3401f5dea13c63c3c0702b08040e2a (diff)
downloadscummvm-rg350-018d8a068f0afe108f8332f40b7b5d49d61ed0c3.tar.gz
scummvm-rg350-018d8a068f0afe108f8332f40b7b5d49d61ed0c3.tar.bz2
scummvm-rg350-018d8a068f0afe108f8332f40b7b5d49d61ed0c3.zip
WINTERMUTE: Rename the variables in BGame::LastClickInfo
Diffstat (limited to 'engines/wintermute')
-rw-r--r--engines/wintermute/Base/BGame.cpp14
-rw-r--r--engines/wintermute/Base/BGame.h10
2 files changed, 12 insertions, 12 deletions
diff --git a/engines/wintermute/Base/BGame.cpp b/engines/wintermute/Base/BGame.cpp
index 02af945d8c..6e70bb6540 100644
--- a/engines/wintermute/Base/BGame.cpp
+++ b/engines/wintermute/Base/BGame.cpp
@@ -4435,17 +4435,17 @@ bool CBGame::isDoubleClick(int buttonIndex) {
Point32 pos;
CBPlatform::getCursorPos(&pos);
- int moveX = abs(pos.x - _lastClick[buttonIndex].PosX);
- int moveY = abs(pos.y - _lastClick[buttonIndex].PosY);
+ int moveX = abs(pos.x - _lastClick[buttonIndex].posX);
+ int moveY = abs(pos.y - _lastClick[buttonIndex].posY);
- if (_lastClick[buttonIndex].Time == 0 || CBPlatform::getTime() - _lastClick[buttonIndex].Time > maxDoubleCLickTime || moveX > maxMoveX || moveY > maxMoveY) {
- _lastClick[buttonIndex].Time = CBPlatform::getTime();
- _lastClick[buttonIndex].PosX = pos.x;
- _lastClick[buttonIndex].PosY = pos.y;
+ if (_lastClick[buttonIndex].time == 0 || CBPlatform::getTime() - _lastClick[buttonIndex].time > maxDoubleCLickTime || moveX > maxMoveX || moveY > maxMoveY) {
+ _lastClick[buttonIndex].time = CBPlatform::getTime();
+ _lastClick[buttonIndex].posX = pos.x;
+ _lastClick[buttonIndex].posY = pos.y;
return false;
} else {
- _lastClick[buttonIndex].Time = 0;
+ _lastClick[buttonIndex].time = 0;
return true;
}
}
diff --git a/engines/wintermute/Base/BGame.h b/engines/wintermute/Base/BGame.h
index bb8cdce402..09251aedf1 100644
--- a/engines/wintermute/Base/BGame.h
+++ b/engines/wintermute/Base/BGame.h
@@ -358,13 +358,13 @@ private:
struct LastClickInfo {
LastClickInfo() {
- PosX = PosY = 0;
- Time = 0;
+ posX = posY = 0;
+ time = 0;
}
- int PosX;
- int PosY;
- uint32 Time;
+ int posX;
+ int posY;
+ uint32 time;
};
LastClickInfo _lastClick[2];