aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/coktel_decoder.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2010-09-07 09:02:46 +0000
committerWillem Jan Palenstijn2010-09-07 09:02:46 +0000
commit8f1143bfdc972d86cf5fbbf85a0084a9d0c71447 (patch)
tree3c7689e4da4f66f8298000ddf1cccac8e40b561a /graphics/video/coktel_decoder.cpp
parentdd0095f1a210aa54f379fe51967def65a0dc5fdf (diff)
downloadscummvm-rg350-8f1143bfdc972d86cf5fbbf85a0084a9d0c71447.tar.gz
scummvm-rg350-8f1143bfdc972d86cf5fbbf85a0084a9d0c71447.tar.bz2
scummvm-rg350-8f1143bfdc972d86cf5fbbf85a0084a9d0c71447.zip
COMMON: Remove Rational::operator int/double
This prevents accidental implicit rounding and might also fix compilation on AmigaOS4 (bug #3060981). svn-id: r52616
Diffstat (limited to 'graphics/video/coktel_decoder.cpp')
-rw-r--r--graphics/video/coktel_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/video/coktel_decoder.cpp b/graphics/video/coktel_decoder.cpp
index 37aad8f2c8..b1cbad2820 100644
--- a/graphics/video/coktel_decoder.cpp
+++ b/graphics/video/coktel_decoder.cpp
@@ -581,7 +581,7 @@ uint32 CoktelDecoder::getTimeToNextFrame() const {
// the middle of a long video.
if (!hasSound())
- return Common::Rational(1000, _frameRate).toInt();
+ return (1000 / _frameRate).toInt();
// If there /is/ audio, we do need to keep video and audio
// in sync, though.