[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,1.33,1.34

Max Horn fingolfin at users.sourceforge.net
Sat Oct 19 18:09:04 CEST 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv4588/scumm

Modified Files:
	gfx.cpp 
Log Message:
transformed some code - is this if really needed?! if yes, for what?

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- gfx.cpp	20 Oct 2002 01:02:51 -0000	1.33
+++ gfx.cpp	20 Oct 2002 01:08:54 -0000	1.34
@@ -241,9 +241,11 @@
 	if (height > _vm->_realHeight)
 		height = _vm->_realHeight;
 
-	scrollY = _vm->camera._cur.y - (_vm->_realHeight / 2);
-	if (scrollY == -(_vm->_realHeight / 2))
+	// FIXME - is this check really necessary?
+	if (_vm->camera._cur.y == 0)
 		scrollY = 0;
+	else
+		scrollY = _vm->_screenTop;
 
 	ptr = vs->screenPtr + (t * NUM_STRIPS + x) * 8 + _readOffs + scrollY * _vm->_realWidth;
 	_vm->_system->copy_rect(ptr, _vm->_realWidth, x * 8, vs->topline + t, w, height);





More information about the Scummvm-git-logs mailing list