[Scummvm-cvs-logs] CVS: scummvm/sword1 animation.cpp,1.4,1.5

Travis Howell kirben at users.sourceforge.net
Tue Jan 27 20:16:14 CET 2004


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

Modified Files:
	animation.cpp 
Log Message:

Add fix from eriktorbjorn to make sure screen is always updated during cutscnes.


Index: animation.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/animation.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- animation.cpp	21 Jan 2004 08:50:15 -0000	1.4
+++ animation.cpp	28 Jan 2004 04:11:06 -0000	1.5
@@ -307,6 +307,16 @@
 				 * dropping frames if we run behind and delaying if we are too fast
 				 */
 
+				/* FIXME: We shouldn't use delay_msecs() here.
+				 * We should use something like the delay()
+				 * function in SwordEngine, so that events are
+				 * handled properly. For now, at least call the
+				 * backend's event handler so that redraw
+				 * events are processed.
+				 */
+
+				OSystem::Event event;
+
 #ifdef BACKEND_8BIT
 				if (checkPaletteSwitch() || (bgSoundStream == NULL) ||
                                     (bgSoundStream->getSamplesPlayed()*12/bgSoundStream->getRate()) < (framenum+3)){
@@ -320,8 +330,7 @@
 						while (_sys->get_msecs() < ticks)
 							_sys->delay_msecs(10);
 					}
-
-
+					_sys->poll_event(&event);
 
 				} else
 					warning("dropped frame %i", framenum);
@@ -341,6 +350,7 @@
 						while (_sys->get_msecs() < ticks)
 							_sys->delay_msecs(10);
 					}
+					_sys->poll_event(&event);
 
 				} else
 					warning("dropped frame %i", framenum);





More information about the Scummvm-git-logs mailing list