[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.249,2.250

Max Horn fingolfin at users.sourceforge.net
Sun Jan 4 16:04:01 CET 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv20377

Modified Files:
	gfx.cpp 
Log Message:
fix bug #870433 (DIG: Scrolling regression with the lander game)

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.249
retrieving revision 2.250
diff -u -d -r2.249 -r2.250
--- gfx.cpp	4 Jan 2004 14:49:14 -0000	2.249
+++ gfx.cpp	5 Jan 2004 00:03:18 -0000	2.250
@@ -430,6 +430,13 @@
 	int size, itemsize, i;
 	byte *room;
 
+	if (_version >= 7) {
+		// Resize main virtual screen in V7 games. This is necessary
+		// because in V7, rooms may be higher than one screen, so we have
+		// to accomodate for that.
+		initVirtScreen(kMainVirtScreen, 0, virtscr[0].topline, _screenWidth, height, 1, 1);
+	}
+
 	room = getResourceAddress(rtRoom, _roomResource);
 	if (_version <= 3) {
 		gdi._numZBuffer = 2;





More information about the Scummvm-git-logs mailing list