aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Base
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-08 22:38:08 +0200
committerEinar Johan Trøan Sømåen2012-07-08 22:38:08 +0200
commit58f2d2575de59f88a9a6fd3152f895332e53ddd1 (patch)
treed6a344138c8bb90b84dc117ea437c2175cb98fb6 /engines/wintermute/Base
parent685ee29640e3f778999ece7b903fe56b7d212724 (diff)
downloadscummvm-rg350-58f2d2575de59f88a9a6fd3152f895332e53ddd1.tar.gz
scummvm-rg350-58f2d2575de59f88a9a6fd3152f895332e53ddd1.tar.bz2
scummvm-rg350-58f2d2575de59f88a9a6fd3152f895332e53ddd1.zip
WINTERMUTE: Rename VarName->varName in BViewport
Diffstat (limited to 'engines/wintermute/Base')
-rw-r--r--engines/wintermute/Base/BViewport.cpp4
-rw-r--r--engines/wintermute/Base/BViewport.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/Base/BViewport.cpp b/engines/wintermute/Base/BViewport.cpp
index 5ac5e375d9..8292f5e145 100644
--- a/engines/wintermute/Base/BViewport.cpp
+++ b/engines/wintermute/Base/BViewport.cpp
@@ -63,8 +63,8 @@ HRESULT CBViewport::persist(CBPersistMgr *persistMgr) {
//////////////////////////////////////////////////////////////////////////
-HRESULT CBViewport::setRect(int left, int top, int right, int bottom, bool NoCheck) {
- if (!NoCheck) {
+HRESULT CBViewport::setRect(int left, int top, int right, int bottom, bool noCheck) {
+ if (!noCheck) {
left = MAX(left, 0);
top = MAX(top, 0);
right = MIN(right, Game->_renderer->_width);
diff --git a/engines/wintermute/Base/BViewport.h b/engines/wintermute/Base/BViewport.h
index 6be57b712d..0360cb9957 100644
--- a/engines/wintermute/Base/BViewport.h
+++ b/engines/wintermute/Base/BViewport.h
@@ -39,7 +39,7 @@ public:
int getHeight();
int getWidth();
RECT *getRect();
- HRESULT setRect(int left, int top, int right, int bottom, bool NoCheck = false);
+ HRESULT setRect(int left, int top, int right, int bottom, bool noCheck = false);
DECLARE_PERSISTENT(CBViewport, CBBase)
int _offsetY;
int _offsetX;