[Scummvm-cvs-logs] SF.net SVN: scummvm:[39471] scummvm/trunk/engines/parallaction/disk_br.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Tue Mar 17 05:41:23 CET 2009
Revision: 39471
http://scummvm.svn.sourceforge.net/scummvm/?rev=39471&view=rev
Author: Kirben
Date: 2009-03-17 04:41:23 +0000 (Tue, 17 Mar 2009)
Log Message:
-----------
Fix graphical glitches in the Amiga version of BRA, the height seems to be off by one.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/disk_br.cpp
Modified: scummvm/trunk/engines/parallaction/disk_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/disk_br.cpp 2009-03-17 04:32:12 UTC (rev 39470)
+++ scummvm/trunk/engines/parallaction/disk_br.cpp 2009-03-17 04:41:23 UTC (rev 39471)
@@ -437,6 +437,7 @@
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 @@
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);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list