[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
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm/insane insane.cpp,1.11,1.12 insane_iact.cpp,1.7,1.8 insane_scenes.cpp,1.7,1.8
- Next message: [Scummvm-cvs-logs] CVS: scummvm/queen cutaway.cpp,1.121,1.122 graphics.cpp,1.91,1.92 logic.cpp,1.182,1.183 sound.cpp,1.34,1.35 sound.h,1.17,1.18 talk.cpp,1.87,1.88
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm/insane insane.cpp,1.11,1.12 insane_iact.cpp,1.7,1.8 insane_scenes.cpp,1.7,1.8
- Next message: [Scummvm-cvs-logs] CVS: scummvm/queen cutaway.cpp,1.121,1.122 graphics.cpp,1.91,1.92 logic.cpp,1.182,1.183 sound.cpp,1.34,1.35 sound.h,1.17,1.18 talk.cpp,1.87,1.88
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list