diff options
author | Eugene Sandulenko | 2010-09-01 08:42:56 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 23:23:48 +0000 |
commit | 77cfc170755e3a21167a409767c5a8239aa3cde6 (patch) | |
tree | 8b66fe496b9d56d2582717037a18bd6f3e5d3bd1 /engines/sword25/fmv | |
parent | 3b80a9378223b807a1ec3865bdeb94ba55d508e3 (diff) | |
download | scummvm-rg350-77cfc170755e3a21167a409767c5a8239aa3cde6.tar.gz scummvm-rg350-77cfc170755e3a21167a409767c5a8239aa3cde6.tar.bz2 scummvm-rg350-77cfc170755e3a21167a409767c5a8239aa3cde6.zip |
SWORD25: Formatting fixes
svn-id: r53302
Diffstat (limited to 'engines/sword25/fmv')
-rw-r--r-- | engines/sword25/fmv/movieplayer.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/engines/sword25/fmv/movieplayer.cpp b/engines/sword25/fmv/movieplayer.cpp index 1941809c1a..a54be8a757 100644 --- a/engines/sword25/fmv/movieplayer.cpp +++ b/engines/sword25/fmv/movieplayer.cpp @@ -49,8 +49,7 @@ Service *OggTheora_CreateObject(Kernel *pKernel) { return new MoviePlayer(pKernel); } -MoviePlayer::MoviePlayer(Kernel *pKernel) : Service(pKernel), - _decoder(g_system->getMixer()) { +MoviePlayer::MoviePlayer(Kernel *pKernel) : Service(pKernel), _decoder(g_system->getMixer()) { if (!_RegisterScriptBindings()) BS_LOG_ERRORLN("Script bindings could not be registered."); else @@ -68,8 +67,7 @@ bool MoviePlayer::LoadMovie(const Common::String &filename, unsigned int z) { // Ausgabebitmap erstellen GraphicEngine *pGfx = Kernel::GetInstance()->GetGfx(); - _outputBitmap = pGfx->GetMainPanel()->AddDynamicBitmap( - _decoder.getWidth(), _decoder.getHeight()); + _outputBitmap = pGfx->GetMainPanel()->AddDynamicBitmap(_decoder.getWidth(), _decoder.getHeight()); if (!_outputBitmap.IsValid()) { BS_LOG_ERRORLN("Output bitmap for movie playback could not be created."); return false; @@ -79,7 +77,10 @@ bool MoviePlayer::LoadMovie(const Common::String &filename, unsigned int z) { float ScreenToVideoWidth = (float) pGfx->GetDisplayWidth() / (float) _outputBitmap->GetWidth(); float ScreenToVideoHeight = (float) pGfx->GetDisplayHeight() / (float) _outputBitmap->GetHeight(); float ScaleFactor = MIN(ScreenToVideoWidth, ScreenToVideoHeight); - if (abs(ScaleFactor - 1.0f) < FLT_EPSILON) ScaleFactor = 1.0f; + + if (abs(ScaleFactor - 1.0f) < FLT_EPSILON) + ScaleFactor = 1.0f; + _outputBitmap->SetScaleFactor(ScaleFactor); // Z-Wert setzen @@ -135,9 +136,9 @@ float MoviePlayer::GetScaleFactor() { return 0; } -void MoviePlayer::SetScaleFactor(float ScaleFactor) { +void MoviePlayer::SetScaleFactor(float scaleFactor) { if (_decoder.isVideoLoaded()) { - _outputBitmap->SetScaleFactor(ScaleFactor); + _outputBitmap->SetScaleFactor(scaleFactor); // Ausgabebitmap auf dem Bildschirm zentrieren GraphicEngine *gfxPtr = Kernel::GetInstance()->GetGfx(); |