diff options
author | Filippos Karapetis | 2015-01-11 04:51:07 +0200 |
---|---|---|
committer | Filippos Karapetis | 2015-01-11 04:51:07 +0200 |
commit | 5b3705660dd075ed249b3f18ef106e71f259af21 (patch) | |
tree | 8361ff938d02ff5c62bf96173207dc0e437a9a5e /engines/zvision | |
parent | 21e9007d80ee60e519896c330324e5e3a95f772f (diff) | |
download | scummvm-rg350-5b3705660dd075ed249b3f18ef106e71f259af21.tar.gz scummvm-rg350-5b3705660dd075ed249b3f18ef106e71f259af21.tar.bz2 scummvm-rg350-5b3705660dd075ed249b3f18ef106e71f259af21.zip |
ZVISION: Avoid using floating point math when upscaling subtitle timing
Spotted by clone2727
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/text/subtitles.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/text/subtitles.cpp b/engines/zvision/text/subtitles.cpp index d549e2a0c6..ffc9e2b808 100644 --- a/engines/zvision/text/subtitles.cpp +++ b/engines/zvision/text/subtitles.cpp @@ -71,8 +71,8 @@ Subtitle::Subtitle(ZVision *engine, const Common::String &subname, bool upscaleT if (sb <= (int32)_subs.size()) { if (upscaleToHires) { // Convert from 15FPS (AVI) to 29.97FPS (VOB) - st = st * 29.97 / 15; - en = en * 29.97 / 15; + st = st * 2997 / 1500; + en = en * 2997 / 1500; } _subs[sb].start = st; _subs[sb].stop = en; |