[Scummvm-cvs-logs] CVS: scummvm/sword2/driver d_draw.cpp,1.61,1.62

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Sun Mar 28 22:45:02 CEST 2004


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

Modified Files:
	d_draw.cpp 
Log Message:
Make clearScene() set the _needFullRedraw variable.

I think the reason I didn't do this from the start was that BS2 used to
call clearScene(), or whatever the function was called back then, between
every frame. Nowadays, it simply assumes that each frame will cover the
previous one.

Anyway, this change prevents the restart/restore dialog from appearing
briefly between the two intro cutscene animations.


Index: d_draw.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/driver/d_draw.cpp,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- d_draw.cpp	24 Feb 2004 22:39:42 -0000	1.61
+++ d_draw.cpp	29 Mar 2004 06:32:54 -0000	1.62
@@ -115,6 +115,7 @@
 
 void Graphics::clearScene(void) {
 	memset(_buffer + MENUDEEP * _screenWide, 0, _screenWide * RENDERDEEP);
+	_needFullRedraw = true;
 }
 
 } // End of namespace Sword2





More information about the Scummvm-git-logs mailing list