From af518b7433d1c13e476444cbaf4482313d5c9caf Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Sat, 2 Jun 2012 21:36:42 +0200 Subject: WINTERMUTE: Clean up Theora support quite a bit. --- engines/wintermute/Ad/AdGame.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'engines/wintermute/Ad') diff --git a/engines/wintermute/Ad/AdGame.cpp b/engines/wintermute/Ad/AdGame.cpp index 9c6c9f4174..5c87278217 100644 --- a/engines/wintermute/Ad/AdGame.cpp +++ b/engines/wintermute/Ad/AdGame.cpp @@ -1693,18 +1693,15 @@ HRESULT CAdGame::DisplayContent(bool Update, bool DisplayAll) { if (!_editorMode) _renderer->SetScreenViewport(); // playing exclusive video? - if(_videoPlayer->isPlaying()) - { + if(_videoPlayer->isPlaying()) { if(Update) _videoPlayer->update(); _videoPlayer->display(); - } - else if(_theoraPlayer) - { + } else if(_theoraPlayer) { if(_theoraPlayer->isPlaying()) { if(Update) _theoraPlayer->update(); _theoraPlayer->display(); } - if(_theoraPlayer->IsFinished()) { + if(_theoraPlayer->isFinished()) { delete _theoraPlayer; _theoraPlayer = NULL; } -- cgit v1.2.3