diff options
| author | Tarek Soliman | 2012-02-15 09:53:31 -0600 |
|---|---|---|
| committer | Tarek Soliman | 2012-02-15 10:07:10 -0600 |
| commit | a4798602d7a025dc13fd253d584dbf29dbec488d (patch) | |
| tree | d6e764535eb4eef6d3c313e00a7eaea8b1724a2d /engines/saga | |
| parent | 921f602ab8631a9d10e0a173b6b331dbafda564a (diff) | |
| download | scummvm-rg350-a4798602d7a025dc13fd253d584dbf29dbec488d.tar.gz scummvm-rg350-a4798602d7a025dc13fd253d584dbf29dbec488d.tar.bz2 scummvm-rg350-a4798602d7a025dc13fd253d584dbf29dbec488d.zip | |
JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'
This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
Diffstat (limited to 'engines/saga')
| -rw-r--r-- | engines/saga/animation.cpp | 2 | ||||
| -rw-r--r-- | engines/saga/gfx.cpp | 2 | ||||
| -rw-r--r-- | engines/saga/isomap.cpp | 2 | ||||
| -rw-r--r-- | engines/saga/script.h | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/engines/saga/animation.cpp b/engines/saga/animation.cpp index 8b2d1e9dad..fd602ff4fb 100644 --- a/engines/saga/animation.cpp +++ b/engines/saga/animation.cpp @@ -501,7 +501,7 @@ void Anim::play(uint16 animId, int vectorTime, bool playing) { } anim = getAnimation(animId); - displayBuffer = (byte*)_vm->_render->getBackGroundSurface()->pixels; + displayBuffer = (byte *)_vm->_render->getBackGroundSurface()->pixels; if (playing) { anim->state = ANIM_PLAYING; diff --git a/engines/saga/gfx.cpp b/engines/saga/gfx.cpp index 8e98f0fbe7..62250a0820 100644 --- a/engines/saga/gfx.cpp +++ b/engines/saga/gfx.cpp @@ -156,7 +156,7 @@ void Surface::transitionDissolve(const byte *sourceBuffer, const Common::Rect &s if (sourceRect.contains(x1, y1)) { color = sourceBuffer[(x1-sourceRect.left) + sourceRect.width()*(y1-sourceRect.top)]; if (flags == 0 || color) - ((byte*)pixels)[seq] = color; + ((byte *)pixels)[seq] = color; } } } diff --git a/engines/saga/isomap.cpp b/engines/saga/isomap.cpp index ec6b13f313..945b4ad5a7 100644 --- a/engines/saga/isomap.cpp +++ b/engines/saga/isomap.cpp @@ -346,7 +346,7 @@ int16 IsoMap::findMulti(int16 tileIndex, int16 absU, int16 absV, int16 absH) { if (offset + sizeof(int16) > _multiTableData.size() * sizeof(int16)) { error("wrong multiTileEntryData->offset"); } - tiles = (int16*)((byte*)&_multiTableData.front() + offset); + tiles = (int16 *)((byte *)&_multiTableData.front() + offset); tileIndex = *tiles; if (tileIndex >= 256) { warning("something terrible happened"); diff --git a/engines/saga/script.h b/engines/saga/script.h index 227b58a298..c4ea2d62b3 100644 --- a/engines/saga/script.h +++ b/engines/saga/script.h @@ -196,9 +196,9 @@ public: case kAddressModule: return _moduleBase; case kAddressStack: - return (byte*)&_stackBuf[_frameIndex]; + return (byte *)&_stackBuf[_frameIndex]; case kAddressThread: - return (byte*)_threadVars; + return (byte *)_threadVars; default: return _commonBase; } |
