aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/graphics.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2008-08-20 03:36:49 +0000
committerNicola Mettifogo2008-08-20 03:36:49 +0000
commitd5d4500b6450c139c5f219ae2e4cbb892c749bcb (patch)
treed4079bc97312b93e6bc297fb1dacd468de3ebc68 /engines/parallaction/graphics.cpp
parent86c3ddc23cfde14b62e2155550beb3debb04a074 (diff)
downloadscummvm-rg350-d5d4500b6450c139c5f219ae2e4cbb892c749bcb.tar.gz
scummvm-rg350-d5d4500b6450c139c5f219ae2e4cbb892c749bcb.tar.bz2
scummvm-rg350-d5d4500b6450c139c5f219ae2e4cbb892c749bcb.zip
* Enlarged buffer for frame decoding. Crashes in the introduction were caused by a small buffer and subsequent out-of-bound writes.
* Disabled debug code. svn-id: r34046
Diffstat (limited to 'engines/parallaction/graphics.cpp')
-rw-r--r--engines/parallaction/graphics.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp
index 83b0a00169..7e73c3a597 100644
--- a/engines/parallaction/graphics.cpp
+++ b/engines/parallaction/graphics.cpp
@@ -34,8 +34,9 @@
namespace Parallaction {
// this is the size of the receiving buffer for unpacked frames,
-// since BRA uses some insanely big animations.
-#define MAXIMUM_UNPACKED_BITMAP_SIZE 640*401
+// since BRA uses some insanely big animations (the largest is
+// part0/ani/dino.ani).
+#define MAXIMUM_UNPACKED_BITMAP_SIZE 641*401
void Gfx::registerVar(const Common::String &name, int32 initialValue) {
@@ -377,7 +378,7 @@ void Gfx::beginFrame() {
*data++ = _backgroundInfo->mask.getValue(x, y);
}
}
-#if 1
+#if 0
Common::DumpFile dump;
dump.open("maskdump.bin");
dump.write(_bitmapMask.pixels, _bitmapMask.w * _bitmapMask.h);