aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-01-08 21:39:21 +0000
committerPaweł Kołodziejski2003-01-08 21:39:21 +0000
commit26076d9301edd918c7676143e5bb13a8009d52f5 (patch)
tree81a4db891e8693df158c0e93916fcd7229aaefc0
parent5ec6e87a685c0c4929861fa3a7d1e6d7d33a7237 (diff)
downloadscummvm-rg350-26076d9301edd918c7676143e5bb13a8009d52f5.tar.gz
scummvm-rg350-26076d9301edd918c7676143e5bb13a8009d52f5.tar.bz2
scummvm-rg350-26076d9301edd918c7676143e5bb13a8009d52f5.zip
added buffer hack
svn-id: r6359
-rw-r--r--scumm/smush/codec47.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/scumm/smush/codec47.cpp b/scumm/smush/codec47.cpp
index 431a12c3e3..07419576be 100644
--- a/scumm/smush/codec47.cpp
+++ b/scumm/smush/codec47.cpp
@@ -772,6 +772,8 @@ static void codec47_subgfx_lev3() {
return;
}
if (code == 0xFD) {
+ d_src += 4;
+ return;
byte * tmp_ptr = (*(d_src + 1) << 7) + (byte*)codec47_decode2_buf2;
int32 l = *(tmp_ptr + 96);
byte val = *(d_src + 2);
@@ -870,6 +872,8 @@ static void codec47_subgfx_lev2() {
return;
}
if (code == 0xFD) {
+ d_src += 4;
+ return;
tmp = *(d_src + 1);
tmp2 = tmp * 4;
tmp <<= 7;
@@ -987,7 +991,7 @@ bool Codec47Decoder::initSize(const Point & p, const Rect & r) {
int32 frame_size = getRect().width() * getRect().height();
_deltaSize = frame_size * 3;
- _deltaBuf = new byte[_deltaSize];
+ _deltaBuf = new byte[_deltaSize + 1000000];
_deltaBufs[0] = _deltaBuf;
_deltaBufs[1] = _deltaBuf + frame_size;
_curBuf = _deltaBuf + frame_size * 2;