aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-11-23 07:59:45 +0000
committerPaweł Kołodziejski2003-11-23 07:59:45 +0000
commit8ddc52e9b545bdbeb2f904fed7bae2c85b7c527f (patch)
tree098adde1f53cc80c0411ab0dc485f641aa583a8c /scumm
parentc4882e8f881746ebf520a26ebea458fb7dd4c63a (diff)
downloadscummvm-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.cpp6
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;