Code formatting

svn-id: r41438
This commit is contained in:
Denis Kasak 2009-06-10 21:12:38 +00:00
parent 2c00d65501
commit b91f93716a
2 changed files with 7 additions and 7 deletions

View File

@ -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();

View File

@ -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) {