aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actions/action_cel.cpp
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-07-17 20:03:51 +0300
committerAndrei Prykhodko2018-07-17 20:04:28 +0300
commitb90816e8119e12c8823d7c6a1333d1eeb57f06fd (patch)
tree0274ab6b003751888e5af50e72aee379f37b8295 /engines/pink/objects/actions/action_cel.cpp
parent0d6c83212ab62aeb6105475ff6239f63f409428c (diff)
downloadscummvm-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.cpp9
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) {