aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Ad
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-02 21:36:42 +0200
committerEinar Johan Trøan Sømåen2012-06-02 21:36:42 +0200
commitaf518b7433d1c13e476444cbaf4482313d5c9caf (patch)
tree911080255db2e948a7859921a1715b1b174a8765 /engines/wintermute/Ad
parenta647ef3afb8535a3245014739abc643be6ebfba2 (diff)
downloadscummvm-rg350-af518b7433d1c13e476444cbaf4482313d5c9caf.tar.gz
scummvm-rg350-af518b7433d1c13e476444cbaf4482313d5c9caf.tar.bz2
scummvm-rg350-af518b7433d1c13e476444cbaf4482313d5c9caf.zip
WINTERMUTE: Clean up Theora support quite a bit.
Diffstat (limited to 'engines/wintermute/Ad')
-rw-r--r--engines/wintermute/Ad/AdGame.cpp9
1 files changed, 3 insertions, 6 deletions
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;
}