[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.233,2.234
Pawel Kolodziejski
aquadran at users.sourceforge.net
Sun Nov 23 01:57:03 CET 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv649
Modified Files:
gfx.cpp
Log Message:
added ugly hack for maniac v1, it fix redrawing last 8 lines of gfx room layer after change room
Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.233
retrieving revision 2.234
diff -u -d -r2.233 -r2.234
--- gfx.cpp 16 Nov 2003 21:26:10 -0000 2.233
+++ gfx.cpp 23 Nov 2003 09:56:19 -0000 2.234
@@ -2312,7 +2312,14 @@
while (l <= r) {
if (l >= 0 && l < gdi._numStrips && (uint) t < (uint) bottom) {
virtscr[0].tdirty[l] = t * 8;
- virtscr[0].bdirty[l] = (t + 1) * 8;
+ //HACK: this is bad place of this hack
+ //it fix redraw last 8 lines in room gfx layer
+ //this is only for maniac classic version becouse that game
+ //has bigger height of room gfx layer
+ if ((_version == 1) && (_gameId == GID_MANIAC))
+ virtscr[0].bdirty[l] = (t + 2) * 8;
+ else
+ virtscr[0].bdirty[l] = (t + 1) * 8;
}
l++;
}
@@ -2324,7 +2331,14 @@
if (t < 0)
t = 0;
virtscr[0].tdirty[l] = t * 8;
- virtscr[0].bdirty[l] = (b + 1) * 8;
+ //HACK: this is bad place of this hack
+ //it fix redraw last 8 lines in room gfx layer
+ //this is only for maniac classic version becouse that game
+ //has bigger height of room gfx layer
+ if ((_version == 1) && (_gameId == GID_MANIAC))
+ virtscr[0].bdirty[l] = (b + 2) * 8;
+ else
+ virtscr[0].bdirty[l] = (b + 1) * 8;
}
updateDirtyScreen(0);
}
More information about the Scummvm-git-logs
mailing list