diff options
author | Einar Johan Trøan Sømåen | 2012-07-08 20:29:49 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-08 20:29:49 +0200 |
commit | f1319eb4fc89acfabda791524cd02a77ac7e25f1 (patch) | |
tree | a88323b44818377faa3d01ee670dbbd72d022d03 /engines | |
parent | e675d9fd20b4adfb04ee760d1efd106dccd7f17e (diff) | |
download | scummvm-rg350-f1319eb4fc89acfabda791524cd02a77ac7e25f1.tar.gz scummvm-rg350-f1319eb4fc89acfabda791524cd02a77ac7e25f1.tar.bz2 scummvm-rg350-f1319eb4fc89acfabda791524cd02a77ac7e25f1.zip |
WINTERMUTE: Rename FuncName/VarName->funcName/varName in BSaveThumbHelper
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wintermute/Base/BGame.cpp | 2 | ||||
-rw-r--r-- | engines/wintermute/Base/BPersistMgr.cpp | 2 | ||||
-rw-r--r-- | engines/wintermute/Base/BSaveThumbHelper.cpp | 14 | ||||
-rw-r--r-- | engines/wintermute/Base/BSaveThumbHelper.h | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/engines/wintermute/Base/BGame.cpp b/engines/wintermute/Base/BGame.cpp index 0545cf9168..3422e860ce 100644 --- a/engines/wintermute/Base/BGame.cpp +++ b/engines/wintermute/Base/BGame.cpp @@ -2066,7 +2066,7 @@ HRESULT CBGame::scCallMethod(CScScript *script, CScStack *stack, CScStack *thisS stack->correctParams(0);
delete _cachedThumbnail;
_cachedThumbnail = new CBSaveThumbHelper(this);
- if (FAILED(_cachedThumbnail->StoreThumbnail())) {
+ if (FAILED(_cachedThumbnail->storeThumbnail())) {
delete _cachedThumbnail;
_cachedThumbnail = NULL;
stack->pushBool(false);
diff --git a/engines/wintermute/Base/BPersistMgr.cpp b/engines/wintermute/Base/BPersistMgr.cpp index af115ef386..01ebb596b9 100644 --- a/engines/wintermute/Base/BPersistMgr.cpp +++ b/engines/wintermute/Base/BPersistMgr.cpp @@ -182,7 +182,7 @@ HRESULT CBPersistMgr::initSave(const char *desc) { // get thumbnails
if (!Game->_cachedThumbnail) {
Game->_cachedThumbnail = new CBSaveThumbHelper(Game);
- if (FAILED(Game->_cachedThumbnail->StoreThumbnail(true))) {
+ if (FAILED(Game->_cachedThumbnail->storeThumbnail(true))) {
delete Game->_cachedThumbnail;
Game->_cachedThumbnail = NULL;
}
diff --git a/engines/wintermute/Base/BSaveThumbHelper.cpp b/engines/wintermute/Base/BSaveThumbHelper.cpp index 60bb2d9dfa..16485fd9ef 100644 --- a/engines/wintermute/Base/BSaveThumbHelper.cpp +++ b/engines/wintermute/Base/BSaveThumbHelper.cpp @@ -45,12 +45,12 @@ CBSaveThumbHelper::~CBSaveThumbHelper(void) { }
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSaveThumbHelper::StoreThumbnail(bool DoFlip) {
+HRESULT CBSaveThumbHelper::storeThumbnail(bool doFlip) {
delete _thumbnail;
_thumbnail = NULL;
if (Game->_thumbnailWidth > 0 && Game->_thumbnailHeight > 0) {
- if (DoFlip) {
+ if (doFlip) {
// when using opengl on windows it seems to be necessary to do this twice
// works normally for direct3d
Game->displayContent(false);
@@ -60,18 +60,18 @@ HRESULT CBSaveThumbHelper::StoreThumbnail(bool DoFlip) { Game->_renderer->flip();
}
- CBImage *Screenshot = Game->_renderer->takeScreenshot();
- if (!Screenshot) return E_FAIL;
+ CBImage *screenshot = Game->_renderer->takeScreenshot();
+ if (!screenshot) return E_FAIL;
// normal thumbnail
if (Game->_thumbnailWidth > 0 && Game->_thumbnailHeight > 0) {
_thumbnail = new CBImage(Game);
- _thumbnail->copyFrom(Screenshot, Game->_thumbnailWidth, Game->_thumbnailHeight);
+ _thumbnail->copyFrom(screenshot, Game->_thumbnailWidth, Game->_thumbnailHeight);
}
- delete Screenshot;
- Screenshot = NULL;
+ delete screenshot;
+ screenshot = NULL;
}
return S_OK;
}
diff --git a/engines/wintermute/Base/BSaveThumbHelper.h b/engines/wintermute/Base/BSaveThumbHelper.h index 36c21363c4..f3a2f914ef 100644 --- a/engines/wintermute/Base/BSaveThumbHelper.h +++ b/engines/wintermute/Base/BSaveThumbHelper.h @@ -39,7 +39,7 @@ class CBSaveThumbHelper : public CBBase { public:
CBSaveThumbHelper(CBGame *inGame);
virtual ~CBSaveThumbHelper(void);
- HRESULT StoreThumbnail(bool DoFlip = false);
+ HRESULT storeThumbnail(bool doFlip = false);
CBImage *_thumbnail;
CBImage *_richThumbnail;
|