diff options
author | Matthew Hoops | 2012-08-12 08:43:32 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-08-12 08:43:32 -0400 |
commit | 5db42076b87766d29cbcdd153446992bc661aa73 (patch) | |
tree | 3f9ef68b1a4ca87f634ca8e1d5eafcfaa6c3e2ff /engines/tucker/sequences.cpp | |
parent | 48c591a233b403193b897c76d2e61a0f8a4f6805 (diff) | |
download | scummvm-rg350-5db42076b87766d29cbcdd153446992bc661aa73.tar.gz scummvm-rg350-5db42076b87766d29cbcdd153446992bc661aa73.tar.bz2 scummvm-rg350-5db42076b87766d29cbcdd153446992bc661aa73.zip |
VIDEO: Convert FlicDecoder to the new AdvancedVideoDecoder API
The video no longer automatically loops (unused in-tree) and must have rewind() called manually
Diffstat (limited to 'engines/tucker/sequences.cpp')
-rw-r--r-- | engines/tucker/sequences.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/tucker/sequences.cpp b/engines/tucker/sequences.cpp index 775fd6f1a0..16c4f4f6f0 100644 --- a/engines/tucker/sequences.cpp +++ b/engines/tucker/sequences.cpp @@ -28,6 +28,7 @@ #include "audio/decoders/wave.h" #include "graphics/palette.h" +#include "graphics/surface.h" #include "tucker/tucker.h" #include "tucker/graphics.h" @@ -749,6 +750,7 @@ void AnimationSequencePlayer::openAnimation(int index, const char *fileName) { _seqNum = 1; return; } + _flicPlayer[index].start(); _flicPlayer[index].decodeNextFrame(); if (index == 0) { getRGBPalette(index); @@ -801,7 +803,7 @@ void AnimationSequencePlayer::playIntroSeq19_20() { if (_flicPlayer[0].getCurFrame() >= 115) { surface = _flicPlayer[1].decodeNextFrame(); if (_flicPlayer[1].endOfVideo()) - _flicPlayer[1].reset(); + _flicPlayer[1].rewind(); } bool framesLeft = decodeNextAnimationFrame(0, false); |