diff options
author | Paul Gilbert | 2016-10-30 08:10:18 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-10-30 08:10:18 -0400 |
commit | 6ffa5228c1691e5794600343b083bc922062be5f (patch) | |
tree | 9f5a517d798ecbf61049da7cd26f91d560e8878e /engines | |
parent | 4fbaa41b147cbfaf3b7370a53b4c8c2ba099f791 (diff) | |
download | scummvm-rg350-6ffa5228c1691e5794600343b083bc922062be5f.tar.gz scummvm-rg350-6ffa5228c1691e5794600343b083bc922062be5f.tar.bz2 scummvm-rg350-6ffa5228c1691e5794600343b083bc922062be5f.zip |
TITANIC: Fix setting different video framerates
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/support/avi_surface.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/titanic/support/avi_surface.cpp b/engines/titanic/support/avi_surface.cpp index 32fa8e4d7c..c3fe54522b 100644 --- a/engines/titanic/support/avi_surface.cpp +++ b/engines/titanic/support/avi_surface.cpp @@ -349,9 +349,11 @@ bool AVISurface::addEvent(int frameNumber, CGameObject *obj) { void AVISurface::setFrameRate(double rate) { // Convert rate from fps to relative to 1.0 (normal speed) + const int PRECISION = 10000; double playRate = rate / 15.0; // Standard 15 FPS + Common::Rational pRate(playRate * PRECISION, PRECISION); - _decoder->setRate(playRate); + _decoder->setRate(pRate); } Graphics::ManagedSurface *AVISurface::getSecondarySurface() { |