From 5282560ba1d1768625a7b5134de7a1e5df59a8b6 Mon Sep 17 00:00:00 2001 From: whiterandrek Date: Tue, 12 Jun 2018 11:11:04 +0300 Subject: PINK: fix drawing of some sprites after setting frame --- engines/pink/objects/actions/action_cel.cpp | 3 +-- 1 file changed, 1 insertion(+), 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 ¢er) { _actor->getPage()->getGame()->getDirector()->addDirtyRect(_bounds); _bounds = Common::Rect::center(center.x, center.y, _decoder.getWidth(), _decoder.getHeight()); -- cgit v1.2.3