diff options
author | Marisa-Chan | 2013-11-07 17:06:25 +0700 |
---|---|---|
committer | Marisa-Chan | 2013-11-07 17:06:25 +0700 |
commit | 7bd57a9ad6bfa551ce2fb605b71fa78e38c5fe88 (patch) | |
tree | 6e8c0542fd8378c3aca7933261b73801031b66f8 /engines/zvision/rlf_animation.h | |
parent | b635fab6e663b0fac154d4fa75d221db4aabb1f5 (diff) | |
download | scummvm-rg350-7bd57a9ad6bfa551ce2fb605b71fa78e38c5fe88.tar.gz scummvm-rg350-7bd57a9ad6bfa551ce2fb605b71fa78e38c5fe88.tar.bz2 scummvm-rg350-7bd57a9ad6bfa551ce2fb605b71fa78e38c5fe88.zip |
ZVISION: Make rlf animation logic equivalent to video decoder methods.
Diffstat (limited to 'engines/zvision/rlf_animation.h')
-rw-r--r-- | engines/zvision/rlf_animation.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/zvision/rlf_animation.h b/engines/zvision/rlf_animation.h index b0f7ee204e..35916de6cb 100644 --- a/engines/zvision/rlf_animation.h +++ b/engines/zvision/rlf_animation.h @@ -92,7 +92,7 @@ public: /** * Returns the pixel data of the frame specified. It will try to use - * getNextFrame() if possible. If not, it uses seekToFrame() to + * decodeNextFrame() if possible. If not, it uses seekToFrame() to * update the internal Surface and then returns a pointer to it. * This function requires _stream = false * @@ -101,19 +101,18 @@ public: */ const Graphics::Surface *getFrameData(uint frameNumber); /** - * Returns the pixel data of the next frame. It is up to the user to - * check if the next frame is valid before calling this. + * Returns the pixel data of current frame and go to next. It is up to the user to + * check if the current frame is valid before calling this. * IE. Use endOfAnimation() * * @return A pointer to the pixel data. Do NOT delete this. */ - const Graphics::Surface *getNextFrame(); - + const Graphics::Surface *decodeNextFrame(); /** * @return Is the currentFrame is the last frame in the animation? */ bool endOfAnimation() { - return _currentFrame == (int)_frameCount - 1; + return _currentFrame == (int)_frameCount; } private: |