aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorMax Horn2007-09-10 13:17:20 +0000
committerMax Horn2007-09-10 13:17:20 +0000
commit4a302b25adb34e6357506a25cbfba6e182ac9209 (patch)
tree2d1f5ac4074c70e37c556c263b109d4b659c060e /engines/scumm
parent6419311a2e361c5e265ae3796ef425700694801f (diff)
downloadscummvm-rg350-4a302b25adb34e6357506a25cbfba6e182ac9209.tar.gz
scummvm-rg350-4a302b25adb34e6357506a25cbfba6e182ac9209.tar.bz2
scummvm-rg350-4a302b25adb34e6357506a25cbfba6e182ac9209.zip
Lots of source code formatting corrections
svn-id: r28887
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/charset.cpp3
-rw-r--r--engines/scumm/file_nes.cpp3
-rw-r--r--engines/scumm/player_v2a.cpp23
3 files changed, 9 insertions, 20 deletions
diff --git a/engines/scumm/charset.cpp b/engines/scumm/charset.cpp
index b90bba6526..df4cfb34a8 100644
--- a/engines/scumm/charset.cpp
+++ b/engines/scumm/charset.cpp
@@ -1226,8 +1226,7 @@ int CharsetRendererV3::getCharWidth(byte chr) {
return spacing;
}
-void CharsetRendererV3::setColor(byte color)
-{
+void CharsetRendererV3::setColor(byte color) {
bool useShadow = false;
_color = color;
diff --git a/engines/scumm/file_nes.cpp b/engines/scumm/file_nes.cpp
index aeba6120a2..88b4253a1d 100644
--- a/engines/scumm/file_nes.cpp
+++ b/engines/scumm/file_nes.cpp
@@ -948,8 +948,7 @@ uint16 ScummNESFile::extractResource(Common::WriteStream *output, const Resource
for (i = 1; i < 8; i++)
reslen += write_byte(output, 0);
- for (j = 0; j < 4; j++)
- {
+ for (j = 0; j < 4; j++) {
reslen += write_byte(output,' ');
for (i = 1; (val = fileReadByte()); i++)
reslen += write_byte(output, val);
diff --git a/engines/scumm/player_v2a.cpp b/engines/scumm/player_v2a.cpp
index 575281a26a..ceabbc7d95 100644
--- a/engines/scumm/player_v2a.cpp
+++ b/engines/scumm/player_v2a.cpp
@@ -35,14 +35,12 @@ namespace Scumm {
static uint32 CRCtable[256];
-static void InitCRC (void)
-{
+static void InitCRC (void) {
const uint32 poly = 0xEDB88320;
int i, j;
uint32 n;
- for (i = 0; i < 256; i++)
- {
+ for (i = 0; i < 256; i++) {
n = i;
for (j = 0; j < 8; j++)
n = (n & 1) ? ((n >> 1) ^ poly) : (n >> 1);
@@ -50,8 +48,7 @@ static void InitCRC (void)
}
}
-static uint32 GetCRC (byte *data, int len)
-{
+static uint32 GetCRC (byte *data, int len) {
uint32 CRC = 0xFFFFFFFF;
int i;
for (i = 0; i < len; i++)
@@ -1113,8 +1110,7 @@ public:
}
virtual bool update() {
assert(_id);
- if (_curfreq >= _freq2)
- {
+ if (_curfreq >= _freq2) {
_mod->setChannelFreq(_id, BASE_FREQUENCY / _curfreq);
_curfreq -= _bendrate;
if (--_bendctr)
@@ -1122,9 +1118,7 @@ public:
_bendrate--;
if (_bendrate < 2)
_bendrate = 2;
- }
- else
- {
+ } else {
if (!--_holdctr)
return false;
}
@@ -1160,15 +1154,12 @@ public:
}
virtual bool update() {
assert(_id);
- if (!_loop)
- {
+ if (!_loop) {
_vol--;
if (_vol)
_mod->setChannelVol(_id, _vol);
else return false;
- }
- else if (!--_loop)
- {
+ } else if (!--_loop) {
_mod->stopChannel(_id);
char *tmp_data = (char *)malloc(_size2);
memcpy(tmp_data, _data + _offset2, _size2);