aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/pink/objects/actions/action_cel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/pink/objects/actions/action_cel.cpp b/engines/pink/objects/actions/action_cel.cpp
index 7100344246..a2cf1923d6 100644
--- a/engines/pink/objects/actions/action_cel.cpp
+++ b/engines/pink/objects/actions/action_cel.cpp
@@ -95,7 +95,6 @@ void ActionCEL::closeDecoder() {
_decoder.close();
}
-
void ActionCEL::setFrame(uint frame) {
_decoder.rewind();
@@ -104,6 +103,7 @@ void ActionCEL::setFrame(uint frame) {
}
_decoder.clearDirtyRects();
+ _actor->getPage()->getGame()->getDirector()->addDirtyRect(_bounds);
}
void ActionCEL::decodeNext() {
@@ -111,7 +111,6 @@ void ActionCEL::decodeNext() {
_actor->getPage()->getGame()->getDirector()->addDirtyRects(this);
}
-
void ActionCEL::setCenter(const Common::Point &center) {
_actor->getPage()->getGame()->getDirector()->addDirtyRect(_bounds);
_bounds = Common::Rect::center(center.x, center.y, _decoder.getWidth(), _decoder.getHeight());