diff options
author | Paul Gilbert | 2016-07-23 14:39:07 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-23 14:39:07 -0400 |
commit | 00c568e17572ce2ac4e9c97c21c00a734951ae9a (patch) | |
tree | 7bf97a5ba8758bd96a6f5ebca270952855d78468 /engines/titanic/support/avi_surface.h | |
parent | 9e02409ef4ece6b3184c1d745106e87f3169e6ca (diff) | |
download | scummvm-rg350-00c568e17572ce2ac4e9c97c21c00a734951ae9a.tar.gz scummvm-rg350-00c568e17572ce2ac4e9c97c21c00a734951ae9a.tar.bz2 scummvm-rg350-00c568e17572ce2ac4e9c97c21c00a734951ae9a.zip |
TITANIC: Fix for movie play ranges that end at the AVI file end
Diffstat (limited to 'engines/titanic/support/avi_surface.h')
-rw-r--r-- | engines/titanic/support/avi_surface.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/titanic/support/avi_surface.h b/engines/titanic/support/avi_surface.h index 77186edeb4..53e2aae6fc 100644 --- a/engines/titanic/support/avi_surface.h +++ b/engines/titanic/support/avi_surface.h @@ -55,6 +55,8 @@ private: CMovieRangeInfoList _movieRangeInfo; int _streamCount; Graphics::ManagedSurface *_movieFrameSurface[2]; + bool _isReversed; + int _currentFrame; private: /** * Render a frame to the video surface @@ -141,7 +143,7 @@ public: /** * Gets the current frame */ - int getFrame() const; + int getFrame() const { return _currentFrame; } /** * Add a movie event @@ -171,9 +173,9 @@ public: Graphics::ManagedSurface *duplicateSecondaryFrame() const; /** - * Returns true if a frame is ready to be rendered + * Returns true if it's time for the next */ - bool isFrameReady() const; + bool isNextFrame() const; }; } // End of namespace Titanic |