[Scummvm-cvs-logs] SF.net SVN: scummvm:[41438] scummvm/branches/gsoc2009-draci/engines/draci
dkasak13 at users.sourceforge.net
dkasak13 at users.sourceforge.net
Wed Jun 10 23:12:39 CEST 2009
Revision: 41438
http://scummvm.svn.sourceforge.net/scummvm/?rev=41438&view=rev
Author: dkasak13
Date: 2009-06-10 21:12:38 +0000 (Wed, 10 Jun 2009)
Log Message:
-----------
Code formatting
Modified Paths:
--------------
scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp
scummvm/branches/gsoc2009-draci/engines/draci/gpldisasm.cpp
Modified: scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp 2009-06-10 19:35:16 UTC (rev 41437)
+++ scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp 2009-06-10 21:12:38 UTC (rev 41438)
@@ -125,10 +125,10 @@
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 @@
// 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 @@
debugC(5, kDraciGeneralDebugLevel, "Finished frame %d", t);
// Free frame memory
- delete [] scr;
+ delete[] scr;
}
getchar();
Modified: scummvm/branches/gsoc2009-draci/engines/draci/gpldisasm.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/gpldisasm.cpp 2009-06-10 19:35:16 UTC (rev 41437)
+++ scummvm/branches/gsoc2009-draci/engines/draci/gpldisasm.cpp 2009-06-10 21:12:38 UTC (rev 41438)
@@ -175,7 +175,7 @@
mathExpressionObject obj;
// Read in initial math object
- obj = (mathExpressionObject) reader.readUint16LE();
+ obj = (mathExpressionObject)reader.readUint16LE();
uint16 value;
while (1) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list