[Scummvm-cvs-logs] CVS: scummvm/scumm costume.cpp,1.120,1.121
Pawel Kolodziejski
aquadran at users.sourceforge.net
Sun Nov 23 00:00:03 CET 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv19446
Modified Files:
costume.cpp
Log Message:
fix / hack for actor costume gfx glitches in scumm v1 games
Index: costume.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/costume.cpp,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- costume.cpp 16 Nov 2003 23:53:00 -0000 1.120
+++ costume.cpp 23 Nov 2003 07:59:45 -0000 1.121
@@ -200,7 +200,11 @@
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;
More information about the Scummvm-git-logs
mailing list