diff options
author | whiterandrek | 2018-06-12 11:11:04 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 5282560ba1d1768625a7b5134de7a1e5df59a8b6 (patch) | |
tree | d2711742cf3b4ab1c817442abe83152fa831b495 /engines/pink | |
parent | e0fa8fe1711efbd52e4148ee6efa7df8e7f45d26 (diff) | |
download | scummvm-rg350-5282560ba1d1768625a7b5134de7a1e5df59a8b6.tar.gz scummvm-rg350-5282560ba1d1768625a7b5134de7a1e5df59a8b6.tar.bz2 scummvm-rg350-5282560ba1d1768625a7b5134de7a1e5df59a8b6.zip |
PINK: fix drawing of some sprites after setting frame
Diffstat (limited to 'engines/pink')
-rw-r--r-- | engines/pink/objects/actions/action_cel.cpp | 3 |
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 ¢er) { _actor->getPage()->getGame()->getDirector()->addDirtyRect(_bounds); _bounds = Common::Rect::center(center.x, center.y, _decoder.getWidth(), _decoder.getHeight()); |