aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-04 22:06:10 +0200
committerEinar Johan Trøan Sømåen2012-07-04 22:06:10 +0200
commit3fa0bb4c7a2079d9f8f6d5787d20cecfb0883146 (patch)
tree9373f9652387bf3d30c5fdbd34b0ca5aca361d71 /engines
parenta2bf9c78f8e28bcfd3659035f3b72e1855dd162f (diff)
downloadscummvm-rg350-3fa0bb4c7a2079d9f8f6d5787d20cecfb0883146.tar.gz
scummvm-rg350-3fa0bb4c7a2079d9f8f6d5787d20cecfb0883146.tar.bz2
scummvm-rg350-3fa0bb4c7a2079d9f8f6d5787d20cecfb0883146.zip
WINTERMUTE: Rename VarName->varName in BActiveRect.
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/Base/BActiveRect.cpp34
-rw-r--r--engines/wintermute/Base/BActiveRect.h4
2 files changed, 19 insertions, 19 deletions
diff --git a/engines/wintermute/Base/BActiveRect.cpp b/engines/wintermute/Base/BActiveRect.cpp
index 72962dbf1e..eb4f60b0d0 100644
--- a/engines/wintermute/Base/BActiveRect.cpp
+++ b/engines/wintermute/Base/BActiveRect.cpp
@@ -48,31 +48,31 @@ CBActiveRect::CBActiveRect(CBGame *inGame): CBBase(inGame) {
//////////////////////////////////////////////////////////////////////
-CBActiveRect::CBActiveRect(CBGame *inGame, CBObject *Owner, CBSubFrame *Frame, int X, int Y, int Width, int Height, float ZoomX, float ZoomY, bool Precise): CBBase(inGame) {
- _owner = Owner;
- _frame = Frame;
- CBPlatform::SetRect(&_rect, X, Y, X + Width, Y + Height);
- _zoomX = ZoomX;
- _zoomY = ZoomY;
- _precise = Precise;
+CBActiveRect::CBActiveRect(CBGame *inGame, CBObject *owner, CBSubFrame *frame, int x, int y, int width, int height, float zoomX, float zoomY, bool precise): CBBase(inGame) {
+ _owner = owner;
+ _frame = frame;
+ CBPlatform::SetRect(&_rect, x, y, x + width, y + height);
+ _zoomX = zoomX;
+ _zoomY = zoomY;
+ _precise = precise;
_region = NULL;
_offsetX = _offsetY = 0;
clipRect();
}
//////////////////////////////////////////////////////////////////////
-CBActiveRect::CBActiveRect(CBGame *inGame, CBObject *Owner, CBRegion *Region, int OffsetX, int OffsetY): CBBase(inGame) {
- _owner = Owner;
- _region = Region;
- CBPlatform::CopyRect(&_rect, &Region->_rect);
- CBPlatform::OffsetRect(&_rect, -OffsetX, -OffsetY);
+CBActiveRect::CBActiveRect(CBGame *inGame, CBObject *owner, CBRegion *region, int offsetX, int offsetY): CBBase(inGame) {
+ _owner = owner;
+ _region = region;
+ CBPlatform::CopyRect(&_rect, &region->_rect);
+ CBPlatform::OffsetRect(&_rect, -offsetX, -offsetY);
_zoomX = 100;
_zoomY = 100;
_precise = true;
_frame = NULL;
clipRect();
- _offsetX = OffsetX;
- _offsetY = OffsetY;
+ _offsetX = offsetX;
+ _offsetY = offsetY;
}
@@ -87,11 +87,11 @@ CBActiveRect::~CBActiveRect() {
//////////////////////////////////////////////////////////////////////////
void CBActiveRect::clipRect() {
RECT rc;
- bool CustomViewport;
- Game->getCurrentViewportRect(&rc, &CustomViewport);
+ bool customViewport;
+ Game->getCurrentViewportRect(&rc, &customViewport);
CBRenderer *Rend = Game->_renderer;
- if (!CustomViewport) {
+ if (!customViewport) {
rc.left -= Rend->_drawOffsetX;
rc.right -= Rend->_drawOffsetX;
rc.top -= Rend->_drawOffsetY;
diff --git a/engines/wintermute/Base/BActiveRect.h b/engines/wintermute/Base/BActiveRect.h
index 1577c2d9b2..a65f0cea7a 100644
--- a/engines/wintermute/Base/BActiveRect.h
+++ b/engines/wintermute/Base/BActiveRect.h
@@ -48,8 +48,8 @@ public:
int _offsetY;
RECT _rect;
CBActiveRect(CBGame *inGameOwner = NULL);
- CBActiveRect(CBGame *inGameOwner, CBObject *Owner, CBSubFrame *Frame, int X, int Y, int Width, int Height, float ZoomX = 100, float ZoomY = 100, bool Precise = true);
- CBActiveRect(CBGame *inGame, CBObject *Owner, CBRegion *Region, int OffsetX, int OffsetY);
+ CBActiveRect(CBGame *inGameOwner, CBObject *owner, CBSubFrame *frame, int x, int y, int width, int height, float zoomX = 100, float zoomY = 100, bool precise = true);
+ CBActiveRect(CBGame *inGame, CBObject *owner, CBRegion *region, int offsetX, int offsetY);
virtual ~CBActiveRect();
};