aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/mpal/mpalutils.cpp
diff options
context:
space:
mode:
authorStrangerke2012-06-07 08:42:35 +0200
committerStrangerke2012-06-07 08:42:35 +0200
commitf12ab3e521b01ed2b40e7d517753dd14bc6e6f0f (patch)
tree729bc315319f8143e88c136bee1290e81f40a5d6 /engines/tony/mpal/mpalutils.cpp
parent53bd99ce870ac5bd7f65d1e45641e13070f652d0 (diff)
downloadscummvm-rg350-f12ab3e521b01ed2b40e7d517753dd14bc6e6f0f.tar.gz
scummvm-rg350-f12ab3e521b01ed2b40e7d517753dd14bc6e6f0f.tar.bz2
scummvm-rg350-f12ab3e521b01ed2b40e7d517753dd14bc6e6f0f.zip
TONY: Rename variables and functions in utils.h
Diffstat (limited to 'engines/tony/mpal/mpalutils.cpp')
-rw-r--r--engines/tony/mpal/mpalutils.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/engines/tony/mpal/mpalutils.cpp b/engines/tony/mpal/mpalutils.cpp
index 2e3bd07383..edc6e65ca1 100644
--- a/engines/tony/mpal/mpalutils.cpp
+++ b/engines/tony/mpal/mpalutils.cpp
@@ -37,42 +37,42 @@ namespace MPAL {
* @param resId MPAL resource to open
*/
RMRes::RMRes(uint32 resID) {
- m_h = _vm->_resUpdate.QueryResource(resID);
- if (m_h == NULL)
- m_h = mpalQueryResource(resID);
- if (m_h != NULL)
- m_buf = (byte *)GlobalLock(m_h);
+ _h = _vm->_resUpdate.queryResource(resID);
+ if (_h == NULL)
+ _h = mpalQueryResource(resID);
+ if (_h != NULL)
+ _buf = (byte *)GlobalLock(_h);
}
/**
* Destructor
*/
RMRes::~RMRes() {
- if (m_h != NULL) {
- GlobalUnlock(m_h);
- GlobalFree(m_h);
+ if (_h != NULL) {
+ GlobalUnlock(_h);
+ GlobalFree(_h);
}
}
/**
* Returns a pointer to the resource
*/
-const byte *RMRes::DataPointer() {
- return m_buf;
+const byte *RMRes::dataPointer() {
+ return _buf;
}
/**
* Returns a pointer to the resource
*/
RMRes::operator const byte *() {
- return DataPointer();
+ return dataPointer();
}
/**
* Returns the size of the resource
*/
-unsigned int RMRes::Size() {
- return GlobalSize(m_h);
+unsigned int RMRes::size() {
+ return GlobalSize(_h);
}
/****************************************************************************\
@@ -86,19 +86,19 @@ RMResRaw::~RMResRaw() {
}
const byte *RMResRaw::DataPointer() {
- return m_buf + 8;
+ return _buf + 8;
}
RMResRaw::operator const byte *() {
return DataPointer();
}
-int RMResRaw::Width() {
- return READ_LE_UINT16(m_buf + 4);
+int RMResRaw::width() {
+ return READ_LE_UINT16(_buf + 4);
}
-int RMResRaw::Height() {
- return READ_LE_UINT16(m_buf + 6);
+int RMResRaw::height() {
+ return READ_LE_UINT16(_buf + 6);
}
} // end of namespace MPAL