aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2/render.cpp
diff options
context:
space:
mode:
authorMax Horn2009-09-30 16:16:53 +0000
committerMax Horn2009-09-30 16:16:53 +0000
commit8ba75fc522f16844524dd4d6f88c3851e2402969 (patch)
treedf25c20389e3e706d508f37914dedc73c6479f00 /engines/sword2/render.cpp
parent25dde91c7c6c7da52636e3daa34bd9eee5d9dcb9 (diff)
downloadscummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.tar.gz
scummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.tar.bz2
scummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.zip
Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
Diffstat (limited to 'engines/sword2/render.cpp')
-rw-r--r--engines/sword2/render.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword2/render.cpp b/engines/sword2/render.cpp
index 7d41ccd207..6123986367 100644
--- a/engines/sword2/render.cpp
+++ b/engines/sword2/render.cpp
@@ -618,7 +618,7 @@ int32 Screen::initialisePsxBackgroundLayer(byte *parallax) {
if (!(remLines && posY == _yBlocks[_layer] - 1))
remLines = 32;
- for(j = 0; j < remLines; j++) {
+ for (j = 0; j < remLines; j++) {
memcpy(tileChunk + j * BLOCKWIDTH * 2, parallax + stripeOffset + j * BLOCKWIDTH, BLOCKWIDTH);
memcpy(tileChunk + j * BLOCKWIDTH * 2 + BLOCKWIDTH, parallax + stripeOffset + j * BLOCKWIDTH, BLOCKWIDTH);
}
@@ -728,7 +728,7 @@ int32 Screen::initialisePsxParallaxLayer(byte *parallax) {
block_has_data = true;
// If one of the two grouped blocks is without data, then we also have transparency
- if(!firstTilePresent || !secondTilePresent)
+ if (!firstTilePresent || !secondTilePresent)
block_is_transparent = true;
}
@@ -737,7 +737,7 @@ int32 Screen::initialisePsxParallaxLayer(byte *parallax) {
byte *block = data;
if (firstTilePresent) {
for (k = 0; k < 0x400; k++) {
- if ( *(block + k) == 0) {
+ if (*(block + k) == 0) {
block_is_transparent = true;
break;
}
@@ -749,7 +749,7 @@ int32 Screen::initialisePsxParallaxLayer(byte *parallax) {
// a second tile, check it
if (secondTilePresent && !block_is_transparent) {
for (k = 0; k < 0x400; k++) {
- if ( *(block + k) == 0) {
+ if (*(block + k) == 0) {
block_is_transparent = true;
break;
}