[Scummvm-cvs-logs] SF.net SVN: scummvm:[51931] scummvm/trunk/graphics/video/coktel_decoder.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Sun Aug 8 19:51:50 CEST 2010


Revision: 51931
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51931&view=rev
Author:   drmccoy
Date:     2010-08-08 17:51:50 +0000 (Sun, 08 Aug 2010)

Log Message:
-----------
VIDEO: That should fix compilation with MSVC

Modified Paths:
--------------
    scummvm/trunk/graphics/video/coktel_decoder.cpp

Modified: scummvm/trunk/graphics/video/coktel_decoder.cpp
===================================================================
--- scummvm/trunk/graphics/video/coktel_decoder.cpp	2010-08-08 17:34:32 UTC (rev 51930)
+++ scummvm/trunk/graphics/video/coktel_decoder.cpp	2010-08-08 17:51:50 UTC (rev 51931)
@@ -581,7 +581,7 @@
 	// the middle of a long video.
 
 	if (!hasSound())
-		return (Common::Rational(1000) / _frameRate).toInt();
+		return Common::Rational(1000, _frameRate).toInt();
 
 	// If there /is/ audio, we do need to keep video and audio
 	// in sync, though.
@@ -1039,7 +1039,7 @@
 			return false;
 		}
 
-		_frameRate = Common::Rational(_soundFreq) / _soundSliceSize;
+		_frameRate = Common::Rational(_soundFreq, _soundSliceSize);
 
 		_hasSound     = true;
 		_soundEnabled = true;
@@ -1760,7 +1760,7 @@
 		return false;
 	}
 
-	_frameRate = Common::Rational(_soundFreq) / _soundSliceSize;
+	_frameRate = Common::Rational(_soundFreq, _soundSliceSize);
 
 	_hasSound     = true;
 	_soundEnabled = true;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list