[Scummvm-cvs-logs] CVS: scummvm/simon vga.cpp,1.165,1.166

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Sat Nov 19 02:06:01 CET 2005


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

Modified Files:
	vga.cpp 
Log Message:
I don't know if this is correct, but it does improve sprite positioning a
lot in Feeble Files.


Index: vga.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/vga.cpp,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -d -r1.165 -r1.166
--- vga.cpp	18 Nov 2005 14:21:01 -0000	1.165
+++ vga.cpp	19 Nov 2005 10:04:54 -0000	1.166
@@ -837,8 +837,10 @@
 			offs = ((vlut[0]) * 2 + state.x) * 8;
 			offs2 = (vlut[1] + state.y);
 		} else {
-			offs = ((vlut[0] - _video_windows[16]) * 2 + state.x) * 8;
+			offs = ((vlut[0] - _video_windows[16]) * 2 + state.x);
 			offs2 = (vlut[1] - _video_windows[17] + state.y);
+			if (getGameType() != GType_FF)
+				offs *= 8;
 		}
 
 		state.surf2_addr += offs + offs2 * state.surf2_pitch;





More information about the Scummvm-git-logs mailing list