[Scummvm-cvs-logs] SF.net SVN: scummvm:[34046] scummvm/trunk/engines/parallaction/graphics.cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Wed Aug 20 05:36:49 CEST 2008


Revision: 34046
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34046&view=rev
Author:   peres001
Date:     2008-08-20 03:36:49 +0000 (Wed, 20 Aug 2008)

Log Message:
-----------
* Enlarged buffer for frame decoding. Crashes in the introduction were caused by a small buffer and subsequent out-of-bound writes.
* Disabled debug code.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/graphics.cpp

Modified: scummvm/trunk/engines/parallaction/graphics.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/graphics.cpp	2008-08-19 22:31:59 UTC (rev 34045)
+++ scummvm/trunk/engines/parallaction/graphics.cpp	2008-08-20 03:36:49 UTC (rev 34046)
@@ -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 @@
 						*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);


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