diff options
author | whitertandrek | 2018-03-25 22:32:07 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 0e39a87862253841e133a8f098b492cd4f5dd255 (patch) | |
tree | 1f5c994f379880bc4b65937e93e8997df21895e2 /engines/pink/objects/actions/action_cel.cpp | |
parent | c6df869fec46858d25d294854c1e446ca47fd85d (diff) | |
download | scummvm-rg350-0e39a87862253841e133a8f098b492cd4f5dd255.tar.gz scummvm-rg350-0e39a87862253841e133a8f098b492cd4f5dd255.tar.bz2 scummvm-rg350-0e39a87862253841e133a8f098b492cd4f5dd255.zip |
PINK: Implemented changing page and module, but without unloading old page. For now it can play logo of Wanderlust Interactive, then logo of MGM and Localizer Logo.
Diffstat (limited to 'engines/pink/objects/actions/action_cel.cpp')
-rw-r--r-- | engines/pink/objects/actions/action_cel.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/pink/objects/actions/action_cel.cpp b/engines/pink/objects/actions/action_cel.cpp index abfc59373e..dc18ee3a39 100644 --- a/engines/pink/objects/actions/action_cel.cpp +++ b/engines/pink/objects/actions/action_cel.cpp @@ -64,8 +64,17 @@ CelDecoder *ActionCEL::getDecoder() { bool ActionCEL::initPallete(Director *director) { _decoder = _actor->getPage()->loadCel(_fileName); _decoder->decodeNextFrame(); + _decoder->rewind(); director->setPallette(_decoder->getPalette()); + return 1; } +void ActionCEL::update() { + if (_decoder->endOfVideo()){ + _decoder->stop(); + _actor->endAction(); + } +} + } // End of namespace Pink
\ No newline at end of file |