diff options
author | Travis Howell | 2009-03-17 04:41:23 +0000 |
---|---|---|
committer | Travis Howell | 2009-03-17 04:41:23 +0000 |
commit | e47c9189d4939d5651a0e026bb3cfa59f7815ba5 (patch) | |
tree | 4118057b44a7d56a808127b0f5ff35ed318618de | |
parent | 6df028151eec602f9d2bf6bcbc1a3e7d1c80dc06 (diff) | |
download | scummvm-rg350-e47c9189d4939d5651a0e026bb3cfa59f7815ba5.tar.gz scummvm-rg350-e47c9189d4939d5651a0e026bb3cfa59f7815ba5.tar.bz2 scummvm-rg350-e47c9189d4939d5651a0e026bb3cfa59f7815ba5.zip |
Fix graphical glitches in the Amiga version of BRA, the height seems to be off by one.
svn-id: r39471
-rw-r--r-- | engines/parallaction/disk_br.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp index 0a331ad069..cd8cab276d 100644 --- a/engines/parallaction/disk_br.cpp +++ b/engines/parallaction/disk_br.cpp @@ -437,6 +437,7 @@ void AmigaDisk_br::init() { const Common::String subDirNames[3] = { "fonts", "backs", "common" }; const Common::String subDirPrefixes[3] = { "fonts", "backs", Common::String::emptyString }; + // The common sub directory, doesn't exist in the Amiga demo uint numDir = (_vm->getFeatures() & GF_DEMO) ? 2 : 3; for (uint i = 0; i < numDir; i++) _sset.add(subDirNames[i], _baseDir->getSubDirectory(subDirPrefixes[i], subDirNames[i], 2), 6); @@ -588,9 +589,8 @@ Sprites* AmigaDisk_br::createSprites(Common::ReadStream &stream) { spr->x = stream.readUint16BE(); spr->y = stream.readUint16BE(); spr->w = stream.readUint16BE(); - spr->h = stream.readUint16BE(); + spr->h = stream.readUint16BE() - 1; - // TODO: Convert image format spr->packedData = (byte*)malloc(spr->size); stream.read(spr->packedData, spr->size); } |