diff options
author | Max Horn | 2003-05-11 11:27:19 +0000 |
---|---|---|
committer | Max Horn | 2003-05-11 11:27:19 +0000 |
commit | b2f22cabf788e0ae8b75130988347c1d2043848a (patch) | |
tree | b050af64cc0a291bcb2d58874672afafa8a5ec3d | |
parent | e5f8056d88247eb095890c8fa050fc406cbf0abb (diff) | |
download | scummvm-rg350-b2f22cabf788e0ae8b75130988347c1d2043848a.tar.gz scummvm-rg350-b2f22cabf788e0ae8b75130988347c1d2043848a.tar.bz2 scummvm-rg350-b2f22cabf788e0ae8b75130988347c1d2043848a.zip |
correction: V2 mask decompression works 100% correct. We just ignore it.
svn-id: r7430
-rw-r--r-- | scumm/gfx.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index a3de607f2a..63af9081f3 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -992,8 +992,7 @@ void Gdi::drawBitmap(byte *ptr, VirtScreen *vs, int x, int y, const int width, c } } if (left <= theX && theX < right) { - dst -= _vm->_screenWidth * height; - dst++; + dst -= height * _vm->_screenWidth - 1; } } @@ -1013,7 +1012,7 @@ void Gdi::drawBitmap(byte *ptr, VirtScreen *vs, int x, int y, const int width, c theY++; if (theY >= height) { if (left <= theX && theX < right) { - mask_ptr -= _numStrips * height - 1; + mask_ptr -= height * _numStrips - 1; } theY = 0; theX += 8; |