aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/fmv
diff options
context:
space:
mode:
authorEugene Sandulenko2010-09-08 14:34:36 +0000
committerEugene Sandulenko2010-10-12 23:44:14 +0000
commite5ac21dcac9a4c18dd5934b4db19b02db06163ca (patch)
tree7dd783a6001b7f325ac728eb74428d8c1eef4967 /engines/sword25/fmv
parent30f199a5a449d612e026b3d3a0ccace3a870c40e (diff)
downloadscummvm-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.cpp2
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);