diff options
author | Gregory Montoir | 2007-01-21 22:08:02 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-01-21 22:08:02 +0000 |
commit | d2f15566d3dfc0f72e10a74198073f17540e598c (patch) | |
tree | 624db310aaa2ec25b0bf6b76db92d5ae6a43cb70 /engines/scumm/scumm.cpp | |
parent | 3341f494296ddab50aa81ab9d996154f321a421e (diff) | |
download | scummvm-rg350-d2f15566d3dfc0f72e10a74198073f17540e598c.tar.gz scummvm-rg350-d2f15566d3dfc0f72e10a74198073f17540e598c.tar.bz2 scummvm-rg350-d2f15566d3dfc0f72e10a74198073f17540e598c.zip |
added handler for sfx sync (abc-slideshow.cup, bda-slideshow.cup) and sfx looping, cleanup
svn-id: r25158
Diffstat (limited to 'engines/scumm/scumm.cpp')
-rw-r--r-- | engines/scumm/scumm.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 981a48171f..d510002584 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -784,7 +784,7 @@ ScummEngine_vCUPhe::~ScummEngine_vCUPhe() { int ScummEngine_vCUPhe::init() { _system->beginGFXTransaction(); - _system->initSize(640, 480); + _system->initSize(CUP_Player::kDefaultVideoWidth, CUP_Player::kDefaultVideoHeight); initCommonGFX(true); _system->endGFXTransaction(); @@ -792,10 +792,10 @@ int ScummEngine_vCUPhe::init() { } int ScummEngine_vCUPhe::go() { - _cupPlayer->open(_filenamePattern.pattern); - _cupPlayer->play(); - _cupPlayer->close(); - + if (_cupPlayer->open(_filenamePattern.pattern)) { + _cupPlayer->play(); + _cupPlayer->close(); + } return 0; } |