[Scummvm-cvs-logs] CVS: scummvm/sword1 animation.cpp,1.1,1.2

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Tue Jan 20 05:28:01 CET 2004


Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1:/tmp/cvs-serv29912

Modified Files:
	animation.cpp 
Log Message:
I assume this fixes CPU usage in synced cutscene playback, but since I
don't have said cutscenes I can't really check. (I did the same change for
BS2 though.)


Index: animation.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/animation.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- animation.cpp	18 Jan 2004 05:52:04 -0000	1.1
+++ animation.cpp	20 Jan 2004 13:27:17 -0000	1.2
@@ -313,7 +313,7 @@
 					_scr->plotYUV(lut, sequence_i->width, sequence_i->height, info->display_fbuf->buf);
 
 					if (bgSoundStream) {
-						while ((bgSoundStream->getSamplesPlayed()*12/bgSoundStream->getRate()) < framenum+1);
+						while ((bgSoundStream->getSamplesPlayed()*12/bgSoundStream->getRate()) < framenum+1)
 							_sys->delay_msecs(10);
 					} else {
 						ticks += 83;
@@ -334,7 +334,7 @@
 					plotYUV(lookup2, sequence_i->width, sequence_i->height, info->display_fbuf->buf);
 
 					if (bgSoundStream) {
-						while ((bgSoundStream->getSamplesPlayed()*12/bgSoundStream->getRate()) < framenum+1);
+						while ((bgSoundStream->getSamplesPlayed()*12/bgSoundStream->getRate()) < framenum+1)
 							_sys->delay_msecs(10);
 					} else {
 						ticks += 83;





More information about the Scummvm-git-logs mailing list