From 69b618a8f5517c609a5e94d9609dc27aea2ad573 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 30 Jul 2010 12:19:13 +0000 Subject: SWORD25: Compilation fixes Majority of files now compile under Windoze. svn-id: r53182 --- engines/sword25/fmv/oggtheora/oggtheora.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sword25/fmv/oggtheora/oggtheora.cpp') 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 -- cgit v1.2.3