diff options
author | Andrei Prykhodko | 2018-07-17 20:03:51 +0300 |
---|---|---|
committer | Andrei Prykhodko | 2018-07-17 20:04:28 +0300 |
commit | b90816e8119e12c8823d7c6a1333d1eeb57f06fd (patch) | |
tree | 0274ab6b003751888e5af50e72aee379f37b8295 /engines/pink/objects/actions/action_cel.cpp | |
parent | 0d6c83212ab62aeb6105475ff6239f63f409428c (diff) | |
download | scummvm-rg350-b90816e8119e12c8823d7c6a1333d1eeb57f06fd.tar.gz scummvm-rg350-b90816e8119e12c8823d7c6a1333d1eeb57f06fd.tar.bz2 scummvm-rg350-b90816e8119e12c8823d7c6a1333d1eeb57f06fd.zip |
PINK: fixed position of some sprites in PDA
Diffstat (limited to 'engines/pink/objects/actions/action_cel.cpp')
-rw-r--r-- | engines/pink/objects/actions/action_cel.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/pink/objects/actions/action_cel.cpp b/engines/pink/objects/actions/action_cel.cpp index 383f4ac77b..8737c38602 100644 --- a/engines/pink/objects/actions/action_cel.cpp +++ b/engines/pink/objects/actions/action_cel.cpp @@ -55,10 +55,6 @@ bool ActionCEL::initPalette(Director *director) { void ActionCEL::start() { loadDecoder(); - - Common::Point point = _decoder.getCenter(); - _bounds = Common::Rect::center(point.x, point.y, _decoder.getWidth(), _decoder.getHeight()); - _decoder.start(); this->onStart(); _actor->getPage()->getGame()->getDirector()->addSprite(this); @@ -84,8 +80,11 @@ Coordinates ActionCEL::getCoordinates() { } void ActionCEL::loadDecoder() { - if (!_decoder.isVideoLoaded()) + if (!_decoder.isVideoLoaded()) { _decoder.loadStream(_actor->getPage()->getResourceStream(_fileName)); + Common::Point point = _decoder.getCenter(); + _bounds = Common::Rect::center(point.x, point.y, _decoder.getWidth(), _decoder.getHeight()); + } } void ActionCEL::setFrame(uint frame) { |