diff options
author | Denis Kasak | 2009-06-10 21:12:38 +0000 |
---|---|---|
committer | Denis Kasak | 2009-06-10 21:12:38 +0000 |
commit | b91f93716a7da1721a552e3ccc979fe2170f9bd0 (patch) | |
tree | f84af9559b55b79b94e8b31b234245b3c2cbef14 | |
parent | 2c00d65501eb838efb72c27e021fdd5af406ff9a (diff) | |
download | scummvm-rg350-b91f93716a7da1721a552e3ccc979fe2170f9bd0.tar.gz scummvm-rg350-b91f93716a7da1721a552e3ccc979fe2170f9bd0.tar.bz2 scummvm-rg350-b91f93716a7da1721a552e3ccc979fe2170f9bd0.zip |
Code formatting
svn-id: r41438
-rw-r--r-- | engines/draci/draci.cpp | 12 | ||||
-rw-r--r-- | engines/draci/gpldisasm.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp index 2d401804f1..e57018087b 100644 --- a/engines/draci/draci.cpp +++ b/engines/draci/draci.cpp @@ -125,10 +125,10 @@ int DraciEngine::go() { palette[7] = 0; for (unsigned int i = 2; i < 256; ++i) { // FIXME: Sprite is too dark, add a fixed value as a workaround - palette[i*4] = readerZ.readByte() + 20; - palette[i*4+1] = readerZ.readByte() + 20; - palette[i*4+2] = readerZ.readByte() + 20; - palette[i*4+3] = 0; + palette[i * 4] = readerZ.readByte() + 20; + palette[i * 4 + 1] = readerZ.readByte() + 20; + palette[i * 4 + 2] = readerZ.readByte() + 20; + palette[i * 4 + 3] = 0; } _system->setPalette(palette, 0, 256); @@ -159,7 +159,7 @@ int DraciEngine::go() { // Draw frame for (uint16 i = 0; i < w; ++i) { for (uint16 j = 0; j < h; ++j) { - scr[j*w+i] = reader.readByte(); + scr[j * w + i] = reader.readByte(); } } _system->copyRectToScreen(scr, w, 0, 0, w, h); @@ -169,7 +169,7 @@ int DraciEngine::go() { debugC(5, kDraciGeneralDebugLevel, "Finished frame %d", t); // Free frame memory - delete [] scr; + delete[] scr; } getchar(); diff --git a/engines/draci/gpldisasm.cpp b/engines/draci/gpldisasm.cpp index d91952b481..9024a2dd72 100644 --- a/engines/draci/gpldisasm.cpp +++ b/engines/draci/gpldisasm.cpp @@ -175,7 +175,7 @@ void handleMathExpression(Common::MemoryReadStream &reader) { mathExpressionObject obj; // Read in initial math object - obj = (mathExpressionObject) reader.readUint16LE(); + obj = (mathExpressionObject)reader.readUint16LE(); uint16 value; while (1) { |