[Scummvm-cvs-logs] CVS: scummvm/scumm/smush smush_player.cpp,1.108,1.109

Eugene Sandulenko sev at users.sourceforge.net
Sat Jan 31 04:31:55 CET 2004


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

Modified Files:
	smush_player.cpp 
Log Message:
Fix bug #887536 FT: Intro crash (regression).


Index: smush_player.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/smush_player.cpp,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -d -r1.108 -r1.109
--- smush_player.cpp	30 Jan 2004 02:38:45 -0000	1.108
+++ smush_player.cpp	31 Jan 2004 12:28:38 -0000	1.109
@@ -679,8 +679,10 @@
 	if ((height > _vm->_screenHeight) || (width > _vm->_screenWidth))
 		return;
 
-	// Special case for FT smush files.
-	if ((height == 1) && (width == 1))
+	// FT Insane uses smaller frames to draw overlays with moving objects
+	// Other .san files do have them as well but their purpose in unknown
+	// and often it causes memory overdraw. So just skip those frames
+	if (!_insanity && ((height != _vm->_screenHeight) || (width != _vm->_screenWidth)))
 		return;
 
 	if (!_alreadyInit) {





More information about the Scummvm-git-logs mailing list