diff options
author | Travis Howell | 2004-09-13 12:24:33 +0000 |
---|---|---|
committer | Travis Howell | 2004-09-13 12:24:33 +0000 |
commit | 576ba76c03dad976211d5c813f926354afb5415b (patch) | |
tree | 6eb145e63744fde5343dbc76c2a89591a538f63d | |
parent | 3c0ac41aa8bd3cbcd7a363d5deb0d0b0d02e0de0 (diff) | |
download | scummvm-rg350-576ba76c03dad976211d5c813f926354afb5415b.tar.gz scummvm-rg350-576ba76c03dad976211d5c813f926354afb5415b.tar.bz2 scummvm-rg350-576ba76c03dad976211d5c813f926354afb5415b.zip |
A few corrections
svn-id: r15092
-rw-r--r-- | scumm/akos.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 3108a7d504..70b9120ab8 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -1223,8 +1223,6 @@ byte AkosRenderer::codec32(int xmoveCur, int ymoveCur) { Common::Rect clip, src, dst; debug(0, "codec32(%d, %d)", xmoveCur, ymoveCur); - // Disable for now, crashes too much. - return 0; if (!_mirror) { dst.left = (_actorX - xmoveCur - _width) + 1; @@ -1249,9 +1247,12 @@ byte AkosRenderer::codec32(int xmoveCur, int ymoveCur) { _vm->markRectAsDirty(kMainVirtScreen, dst, _actorID); - byte *dstptr = _outptr + dst.left + dst.top * _outwidth; + if (_draw_top > dst.top) + _draw_top = dst.top; + if (_draw_bottom < dst.bottom) + _draw_bottom = dst.bottom; - _vm->gdi.decompressImageHE(dstptr, _outwidth, &dst, _srcptr, &src); + _vm->gdi.decompressImageHE(_outptr, _outwidth, &dst, _srcptr, &src); return 0; } |