aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/fmv/oggtheora
diff options
context:
space:
mode:
authorEugene Sandulenko2010-07-30 12:19:13 +0000
committerEugene Sandulenko2010-10-12 21:54:21 +0000
commit69b618a8f5517c609a5e94d9609dc27aea2ad573 (patch)
treedbe17f994eb3195b7ee334b3dd03a1f6827760bb /engines/sword25/fmv/oggtheora
parente8bca8b8fe0f80e0d5053b190840b034f50ae163 (diff)
downloadscummvm-rg350-69b618a8f5517c609a5e94d9609dc27aea2ad573.tar.gz
scummvm-rg350-69b618a8f5517c609a5e94d9609dc27aea2ad573.tar.bz2
scummvm-rg350-69b618a8f5517c609a5e94d9609dc27aea2ad573.zip
SWORD25: Compilation fixes
Majority of files now compile under Windoze. svn-id: r53182
Diffstat (limited to 'engines/sword25/fmv/oggtheora')
-rwxr-xr-xengines/sword25/fmv/oggtheora/oggtheora.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/fmv/oggtheora/oggtheora.cpp b/engines/sword25/fmv/oggtheora/oggtheora.cpp
index dcff5e025b..9ad2712128 100755
--- a/engines/sword25/fmv/oggtheora/oggtheora.cpp
+++ b/engines/sword25/fmv/oggtheora/oggtheora.cpp
@@ -92,7 +92,7 @@ namespace
{
return ((x > high) ? high : (( x < low) ? low : x));
}
-};
+}
// -----------------------------------------------------------------------------
// Konstruktion / Destruktion
@@ -313,7 +313,7 @@ bool BS_OggTheora::LoadMovie(const std::string & Filename, unsigned int Z)
float ScreenToVideoWidth = (float) pGfx->GetDisplayWidth() / (float) m_OutputBitmap->GetWidth();
float ScreenToVideoHeight = (float) pGfx->GetDisplayHeight() / (float) m_OutputBitmap->GetHeight();
float ScaleFactor = std::min(ScreenToVideoWidth, ScreenToVideoHeight);
- if (abs(ScaleFactor - 1.0f) < FLT_EPSILON) ScaleFactor = 1.0f;
+ if (ABS(ScaleFactor - 1.0f) < FLT_EPSILON) ScaleFactor = 1.0f;
m_OutputBitmap->SetScaleFactor(ScaleFactor);
// Z-Wert setzen