diff options
author | Einar Johan Trøan Sømåen | 2012-06-02 21:36:42 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-02 21:36:42 +0200 |
commit | af518b7433d1c13e476444cbaf4482313d5c9caf (patch) | |
tree | 911080255db2e948a7859921a1715b1b174a8765 /engines/wintermute/Ad | |
parent | a647ef3afb8535a3245014739abc643be6ebfba2 (diff) | |
download | scummvm-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.cpp | 9 |
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;
}
|