diff options
author | Paweł Kołodziejski | 2003-11-23 07:59:45 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-11-23 07:59:45 +0000 |
commit | 8ddc52e9b545bdbeb2f904fed7bae2c85b7c527f (patch) | |
tree | 098adde1f53cc80c0411ab0dc485f641aa583a8c /scumm | |
parent | c4882e8f881746ebf520a26ebea458fb7dd4c63a (diff) | |
download | scummvm-rg350-8ddc52e9b545bdbeb2f904fed7bae2c85b7c527f.tar.gz scummvm-rg350-8ddc52e9b545bdbeb2f904fed7bae2c85b7c527f.tar.bz2 scummvm-rg350-8ddc52e9b545bdbeb2f904fed7bae2c85b7c527f.zip |
fix / hack for actor costume gfx glitches in scumm v1 games
svn-id: r11355
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/costume.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scumm/costume.cpp b/scumm/costume.cpp index 44a0f4df73..e40d5647c5 100644 --- a/scumm/costume.cpp +++ b/scumm/costume.cpp @@ -200,7 +200,11 @@ byte CostumeRenderer::mainRoutine(int xmoveCur, int ymoveCur) { v1.skip_width = _width; v1.scaleXstep = _mirror ? 1 : -1; - _vm->updateDirtyRect(0, x_left, x_right + 1, y_top, y_bottom, _dirty_id); + if (_vm->_version == 1) + //HACK: it fix gfx glitches leaved by actor costume in V1 games, when actor moving to left + _vm->updateDirtyRect(0, x_left, x_right + 8, y_top, y_bottom, _dirty_id); + else + _vm->updateDirtyRect(0, x_left, x_right + 1, y_top, y_bottom, _dirty_id); if (y_top >= (int)_outheight || y_bottom <= 0) return 0; |