diff options
author | Max Horn | 2004-11-28 02:05:04 +0000 |
---|---|---|
committer | Max Horn | 2004-11-28 02:05:04 +0000 |
commit | cc11a1249ac335cb289ed14913df85c8cd7d0036 (patch) | |
tree | a1cbc8144047e5323d840c6e135a4ca890450b70 /scumm/akos.cpp | |
parent | 232ef35298f8105a2d061e8ce2ada0facf6b06e0 (diff) | |
download | scummvm-rg350-cc11a1249ac335cb289ed14913df85c8cd7d0036.tar.gz scummvm-rg350-cc11a1249ac335cb289ed14913df85c8cd7d0036.tar.bz2 scummvm-rg350-cc11a1249ac335cb289ed14913df85c8cd7d0036.zip |
Fix AKOS clipping issues at the left/right border of the screen (smooth scrolling regression)
svn-id: r15926
Diffstat (limited to 'scumm/akos.cpp')
-rw-r--r-- | scumm/akos.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 48b4e09c43..c9b91f165a 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -518,8 +518,8 @@ void AkosRenderer::codec1_genericDecode(Codec1 &v1) { height = _height; scaleytab = &v1.scaletable[v1.scaleYindex]; - maskbit = revBitMask[(v1.x + _vm->virtscr[0].xstart) & 7]; - mask = _vm->getMaskBuffer(v1.x, v1.y, _zbuf); + maskbit = revBitMask[v1.x & 7]; + mask = _vm->getMaskBuffer(v1.x - (_vm->virtscr[0].xstart & 7), v1.y, _zbuf); if (len) goto StartPos; @@ -573,14 +573,14 @@ void AkosRenderer::codec1_genericDecode(Codec1 &v1) { v1.x += v1.scaleXstep; if (v1.x < 0 || v1.x >= _out.w) return; - maskbit = revBitMask[(v1.x + _vm->virtscr[0].xstart) & 7]; + maskbit = revBitMask[v1.x & 7]; v1.destptr += v1.scaleXstep; skip_column = false; } else skip_column = true; v1.scaleXindex += v1.scaleXstep; dst = v1.destptr; - mask = _vm->getMaskBuffer(v1.x, v1.y, _zbuf); + mask = _vm->getMaskBuffer(v1.x - (_vm->virtscr[0].xstart & 7), v1.y, _zbuf); } StartPos:; } while (--len); @@ -978,8 +978,7 @@ byte AkosRenderer::codec5(int xmoveCur, int ymoveCur) { bdd.srcwidth = _width; bdd.srcheight = _height; - bdd.dst = _vm->virtscr[kMainVirtScreen]; - bdd.dst.pixels = _out.pixels; + bdd.dst = _out; bdd.dataptr = _srcptr; bdd.scale_x = 255; bdd.scale_y = 255; |