diff options
author | Eugene Sandulenko | 2009-01-01 15:06:43 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-01-01 15:06:43 +0000 |
commit | 696897b0583ad52ebc6f7666525277847619a8ce (patch) | |
tree | 5ac2be2991e94dce32c5bb7fdb0dcc4188221503 /engines/made/resource.cpp | |
parent | 05d3633eb32ead8e11435b85a9db1ddaa1482fcb (diff) | |
download | scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.gz scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.tar.bz2 scummvm-rg350-696897b0583ad52ebc6f7666525277847619a8ce.zip |
Whoa! Removing trailing spaces.
svn-id: r35648
Diffstat (limited to 'engines/made/resource.cpp')
-rw-r--r-- | engines/made/resource.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/made/resource.cpp b/engines/made/resource.cpp index 2cae8b276c..bfd94ea86f 100644 --- a/engines/made/resource.cpp +++ b/engines/made/resource.cpp @@ -57,7 +57,7 @@ PictureResource::~PictureResource() { void PictureResource::load(byte *source, int size) { Common::MemoryReadStream *sourceS = new Common::MemoryReadStream(source, size); - + _hasPalette = (sourceS->readByte() != 0); byte cmdFlags = sourceS->readByte(); byte pixelFlags = sourceS->readByte(); @@ -109,7 +109,7 @@ void AnimationResource::load(byte *source, int size) { sourceS->readUint32LE(); sourceS->readUint32LE(); sourceS->readUint16LE(); - + _flags = sourceS->readUint16LE(); _width = sourceS->readUint16LE(); _height = sourceS->readUint16LE(); @@ -137,7 +137,7 @@ void AnimationResource::load(byte *source, int size) { uint16 maskOffs = sourceS->readUint16LE(); sourceS->readUint16LE(); uint16 lineSize = sourceS->readUint16LE(); - + Graphics::Surface *frame = new Graphics::Surface(); frame->create(frameWidth, frameHeight, 1); @@ -148,7 +148,7 @@ void AnimationResource::load(byte *source, int size) { } delete sourceS; - + } /* SoundResource */ @@ -165,16 +165,16 @@ void SoundResource::load(byte *source, int size) { uint16 chunkCount = READ_LE_UINT16(source + 8); uint16 chunkSize = READ_LE_UINT16(source + 12); - + _soundSize = chunkCount * chunkSize; _soundData = new byte[_soundSize]; - decompressSound(source + 14, _soundData, chunkSize, chunkCount); + decompressSound(source + 14, _soundData, chunkSize, chunkCount); } Audio::AudioStream *SoundResource::getAudioStream(int soundRate, bool loop) { byte flags = Audio::Mixer::FLAG_UNSIGNED; - if (loop) + if (loop) flags |= Audio::Mixer::FLAG_LOOP; return Audio::makeLinearInputStream(_soundData, _soundSize, soundRate, flags, 0, 0); |