diff options
Diffstat (limited to 'engines/titanic/support')
-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() { |