[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,1.86,1.87

Jonathan Gray khalek at users.sourceforge.net
Mon Dec 23 23:54:03 CET 2002


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

Modified Files:
	gfx.cpp 
Log Message:
make initBGBuffers handle the fact that v8 stores number of z buffers in RMHD not RMIH. Now we have to handle the fact that object code blocks are now a sub block of RMSC

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- gfx.cpp	21 Dec 2002 12:34:16 -0000	1.86
+++ gfx.cpp	24 Dec 2002 07:53:29 -0000	1.87
@@ -478,6 +478,7 @@
 
 	if (_features & GF_AFTER_V7) {
 		initVirtScreen(0, 0, virtscr[0].topline, _realWidth, height, 1, 1);
+
 	}
 
 	room = getResourceAddress(rtRoom, _roomResource);
@@ -495,6 +496,10 @@
 			ptr += off;
 			off = READ_LE_UINT16(ptr);
 		}
+	} else if (_features & GF_AFTER_V8) {
+		// in V8 there is no RMIH and num z buffers is in RMHD
+		ptr = findResource(MKID('RMHD'), room);
+		gdi._numZBuffer = READ_LE_UINT32(ptr + 24) + 1;
 	} else {
 		ptr = findResource(MKID('RMIH'), findResource(MKID('RMIM'), room));
 		gdi._numZBuffer = READ_LE_UINT16(ptr + 8) + 1;





More information about the Scummvm-git-logs mailing list