[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.350,2.351

Max Horn fingolfin at users.sourceforge.net
Tue Sep 28 09:34:26 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14289

Modified Files:
	gfx.cpp 
Log Message:
Adjust transitionEffect to work properly for vertically scrolled rooms

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.350
retrieving revision 2.351
diff -u -d -r2.350 -r2.351
--- gfx.cpp	27 Sep 2004 23:55:49 -0000	2.350
+++ gfx.cpp	28 Sep 2004 16:26:37 -0000	2.351
@@ -2671,8 +2671,8 @@
 			if (t == b) {
 				while (l <= r) {
 					if (l >= 0 && l < gdi._numStrips && t < bottom) {
-						virtscr[0].tdirty[l] = t * 8;
-						virtscr[0].bdirty[l] = (b + 1) * 8;
+						virtscr[0].tdirty[l] = _screenTop + t * 8;
+						virtscr[0].bdirty[l] = _screenTop + (b + 1) * 8;
 					}
 					l++;
 				}
@@ -2683,8 +2683,8 @@
 					b = bottom;
 				if (t < 0)
 					t = 0;
- 				virtscr[0].tdirty[l] = t * 8;
-				virtscr[0].bdirty[l] = (b + 1) * 8;
+ 				virtscr[0].tdirty[l] = _screenTop + t * 8;
+				virtscr[0].bdirty[l] = _screenTop + (b + 1) * 8;
 			}
 			updateDirtyScreen(kMainVirtScreen);
 		}





More information about the Scummvm-git-logs mailing list