[Scummvm-cvs-logs] CVS: scummvm/sword2/driver animation.cpp,1.36,1.37

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Sun Mar 28 05:23:01 CEST 2004


Update of /cvsroot/scummvm/scummvm/sword2/driver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10007

Modified Files:
	animation.cpp 
Log Message:
Fixed bug I introduced in the recent cleanup: It's the screen, not the
overlay, that needs to be cleared at the beginning of the movie. Otherwise
what was on the screen may show at the end of the movie.


Index: animation.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/driver/animation.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- animation.cpp	24 Mar 2004 07:29:59 -0000	1.36
+++ animation.cpp	28 Mar 2004 13:10:52 -0000	1.37
@@ -190,8 +190,12 @@
 		return RD_OK;
 	}
 
-	anim->clearScreen();
-	anim->updateScreen();
+#ifndef BACKEND_8BIT
+	// Clear the screen, because whatever is on it will be visible when the
+	// overlay is removed.
+	_vm->_graphics->clearScene();
+	_vm->_graphics->updateDisplay();
+#endif
 
 #ifndef SCUMM_BIG_ENDIAN
 	flags |= SoundMixer::FLAG_LITTLE_ENDIAN;





More information about the Scummvm-git-logs mailing list