diff options
author | Eugene Sandulenko | 2010-09-08 14:34:36 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 23:44:14 +0000 |
commit | e5ac21dcac9a4c18dd5934b4db19b02db06163ca (patch) | |
tree | 7dd783a6001b7f325ac728eb74428d8c1eef4967 /engines/sword25/fmv | |
parent | 30f199a5a449d612e026b3d3a0ccace3a870c40e (diff) | |
download | scummvm-rg350-e5ac21dcac9a4c18dd5934b4db19b02db06163ca.tar.gz scummvm-rg350-e5ac21dcac9a4c18dd5934b4db19b02db06163ca.tar.bz2 scummvm-rg350-e5ac21dcac9a4c18dd5934b4db19b02db06163ca.zip |
SWORD25: Fix some warnings
svn-id: r53338
Diffstat (limited to 'engines/sword25/fmv')
-rw-r--r-- | engines/sword25/fmv/movieplayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/fmv/movieplayer.cpp b/engines/sword25/fmv/movieplayer.cpp index 355a1a14cc..d0901ec4b4 100644 --- a/engines/sword25/fmv/movieplayer.cpp +++ b/engines/sword25/fmv/movieplayer.cpp @@ -78,7 +78,7 @@ bool MoviePlayer::LoadMovie(const Common::String &filename, uint z) { float screenToVideoHeight = (float)pGfx->GetDisplayHeight() / (float)_outputBitmap->getHeight(); float scaleFactor = MIN(screenToVideoWidth, screenToVideoHeight); - if (abs(scaleFactor - 1.0f) < FLT_EPSILON) + if (abs((int)(scaleFactor - 1.0f)) < FLT_EPSILON) scaleFactor = 1.0f; _outputBitmap->setScaleFactor(scaleFactor); |